Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RejectChanges
Message
De
10/09/2003 10:52:17
 
 
À
10/09/2003 01:28:22
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00827744
Message ID:
00827859
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform