Hi guys im stuck in vb08 again......
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
The error occurs on the Me.Customertabl eadapter.update (me.fortedatase t1.Customers) line
The default error message is:
"Update requires a valid updatecommand when passed datarow with modified rows"
Any solution?
Daniel(~_~)
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
Code:
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(~_~)
Comment