Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RejectChanges
Message
From
10/09/2003 10:52:17
 
 
To
10/09/2003 01:28:22
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00827744
Message ID:
00827859
Views:
12
Victoria,

After you read the XML into the DataSet, you need to do an AcceptChanges() at that point, prior to doing anything else. I'm assuming that when you issue a RejectChanges() you're just trying to undo the user's changes, but if you haven't done that initial AcceptChanges() after loading the DataSet from the XML, .NET sees the added rows as changes too and so undoes them as well.

~~Bonnie


>I have an XmlDataDocument that is synchronized with a dataset. My objects in the form are binded to the dataset.
>I noticed hat when I issue dataset.datatable.rejectchanges the count property of the datatable is 0.
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform