Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force DataSet.HasChanges to True
Message
From
31/01/2010 12:56:00
 
 
To
29/01/2010 14:28:27
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 3.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01446548
Message ID:
01446720
Views:
63
>I have a DataSet that I want to save to a different source than it was retrieved. I need to set the HasChanges to true even though it wasn't modified in order to complete my save. Anybody know how I can do that?

I usually make a fake change:
ds.Tables[0].Rows[0][0] = ds.Tables[0].Rows[0][0];
ds.Tables[0].Rows[0].EndEdit(); // may or may not be necessary, do it anyway
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform