-
Jun 3rd, 2009, 08:17 AM
#1
Thread Starter
Hyperactive Member
[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.
-
Jun 3rd, 2009, 10:20 AM
#2
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|