Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set rowstate
Message
De
02/03/2007 13:16:39
 
 
À
02/03/2007 13:09:12
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01200353
Message ID:
01200357
Vues:
17
The .AcceptChanges() method sets all rowstates in the table to unchanged. There is also an .AcceptChanges() method on the DataRow itself, so you could also do it one row at a time if you needed to.

~~Bonnie



>Hi,
>I created datatable act as temporary "cursor". My program will loop thru this datatable and check for rowstate to determine whether insert/update/delete record from underlying table.
>
>How could I retain content of datatable.rows but set their rowstate to unchanged?
>
>Thank you
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