C
CM
Hi there:
I am working on a dataset, changed its rows, however, when I try to update
the changes to database, using the following code (Dataset1 is untyped
dataset):
sqlDbDataAdapter1.Update(Dataset1, "Customers")
but got the error:
---------------------------------------
An unhandled exception of the type 'System.InvalidOperationException'
occurred in system.data.dll
Additional information: Update requires a valid UpdateCommand when passed
DataRow collection with modified rows.
---------------------------------------
What I am missing?
Thanks!
CM
I am working on a dataset, changed its rows, however, when I try to update
the changes to database, using the following code (Dataset1 is untyped
dataset):
sqlDbDataAdapter1.Update(Dataset1, "Customers")
but got the error:
---------------------------------------
An unhandled exception of the type 'System.InvalidOperationException'
occurred in system.data.dll
Additional information: Update requires a valid UpdateCommand when passed
DataRow collection with modified rows.
---------------------------------------
What I am missing?
Thanks!
CM