Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select from one strongly typed dataset to another
Message
De
09/07/2011 12:11:06
 
 
À
09/07/2011 09:24:59
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01517609
Message ID:
01517811
Vues:
57
This message has been marked as the solution to the initial question of the thread.
I guess I should have tested it before I posted it. Sorry Bill. There's another overload to that CopyToDataTable() method that *will* work (I tested it this time! <g>) and there's no casting necessary. The syntax is as follows:
// there are other LoadOptions also
ds1.MyTable.Select("x=y").CopyToDataTable(ds2.MyTable, LoadOption.OverwriteChanges);
~~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