Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating record in a dataset
Message
From
22/11/2002 16:44:52
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Updating record in a dataset
Miscellaneous
Thread ID:
00726028
Message ID:
00726028
Views:
49
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
Map
View

Click here to load this message in the networking platform