Data Grid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjeetgrang
    New Member
    • Feb 2008
    • 36

    Data Grid

    I am doing editing with datagrid. all records displays in the datagrid and usrer has to select the record to edit and selected records goes to a form and changes can be made there.
    but when i display the data in grid it comes good and when i navigate in the grid (say moves to 2nd record from first ), data of couple of fields of first record disappears and if i refresh the grid(the ADODC and Data grid) it gives me a message as

    Binding collection error

    field not updatable Bound propertyname;te xt , fieldname ; fare

    where fare is one of field in the table .

    and i click ok everything goes nice except that error message.

    how i can aviod that message to pop up

    Suggestion plz from experts
    Manjeet Grang
  • lee123
    Contributor
    • Feb 2007
    • 556

    #2
    do you have an error handleing event in you code. if not just put one in

    On Error Resume Next

    lee123

    Comment

    • manjeetgrang
      New Member
      • Feb 2008
      • 36

      #3
      i did but still same problem
      manjeet

      QUOTE=lee123]do you have an error handleing event in you code. if not just put one in

      On Error Resume Next

      lee123[/QUOTE]

      Comment

      • Neelesh2007
        New Member
        • Oct 2007
        • 41

        #4
        I think you are selecting Row of datagrid for Editing, transferring this to form and transferring back to grid after Editing. If it is so then in AfterColEdit Event of Datagrid use following code:
        adodc1.recordse t.update
        I think this will solve ur problem.
        Regards

        Comment

        Working...