General information
Title:
Updating record in a dataset
I'm trying to update a record in a dataset using C#. I have the record I need, but can't seem to get the update to work.
I am doing:
ds.Tables[0].Rows[0].ItemArray[0] = "My Value";
DataAdapter.Update(ds, ds.Tables[0].ToString());
ds.Tables[0].AcceptChanges();
I get no errors but I also do not see the new value in my table. Is there a simple example of updating a record in a Dataset?
Thanks,
Jerry
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only