-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: rajeshpm
Message 1 in Discussion

Doing some RnD on this...

Getting the dataset(access db) thru one method of a class and populating a datagrid. 
modifies one record and clicks on save button calls another method of the same class 
and passes the datasource/dataset back and this is the code in the function,

Public Function updatedata(ByVal ds2 As DataSet)
If Not ds2.HasChanges(DataRowState.Modified) Then Exit Function
DA1.Update(ds2, "Table1")
ds2.AcceptChanges()
End function

Dataadapter declared as a public property and mantained throughout.

Getting the following error on DA1.Update(ds2, "Table1")

An unhandled exception of type 'System.InvalidOperationException' occurred in 
system.data.dll

Additional information: Update requires a valid UpdateCommand when passed DataRow 
collection with modified rows.



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to