Im trying to save the database after editing with a datagrid.
It saves ok when a new record has been added but not when existing data has been modified.
This is the code im using
Expand|Select|Wrap|Line Numbers
- Try
- Me.Validate()
- Me.Customerbindingsource.endedit()
- Me.customertableadapter.update(me.fortedataset1.Customers)
- msg("Data saved")
- Catch ex as exception
- Msg("saved Failed")
- e.cancel = True
- End try
The default error message is:
"Update requires a valid updatecommand when passed datarow with modified rows"
Any solution?
Daniel(~_~)