Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force DataSet.HasChanges to True
Message
De
31/01/2010 12:56:00
 
 
À
29/01/2010 14:28:27
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 3.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01446548
Message ID:
01446720
Vues:
62
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform