Results 1 to 2 of 2

Thread: [RESOLVED] BindingSource and BindingNavigator question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2007
    Location
    Hong Kong
    Posts
    384

    Resolved [RESOLVED] BindingSource and BindingNavigator question

    halo all!! my program has been finished a year ago and then I didn't use it. but today I need to use it for some reason. I find it cannot be update when pressing the save button on BindingNavigator bar, here is the message

    System.InvalidOperationException
    When passing the modified data to DataRow collection,The update need a valid UpdateCommand.

    here is my code to update

    Me.Validate()
    Me.EmpBindingSource.EndEdit()
    Me.EmpTableAdapter.Update(Me.SlmcDataSet1.emp)

    They were working last year but I don't know what's wrong with it
    Last edited by newpat; Jun 3rd, 2009 at 12:21 PM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2007
    Location
    Hong Kong
    Posts
    384

    Re: [urgent]BindingSource and BindingNavigator question

    I think I may use the old version of daabase, but how can I update my dataset so that matching the database table? I am using mysql, thx!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width