Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying rows in Datasets
Message
De
27/02/2003 10:29:58
 
 
À
27/02/2003 09:45:25
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00758746
Message ID:
00758775
Vues:
19
Kev,

Well, the DataTable has a .Copy() method, but that's not what you want ... it copies the entire table, structure and data, to another table. There's no built-in methods for doing this on the DataRow level, AFAIK, but you could easily roll-your-own, probably by iterating through the columns collection and copying the common columns.

~~Bonnie

>Hi
>
>Is there a way of copying the contents of a DataRow from one DataSet to another DataRow?
>
>I have to similar tables which share common fields and would like to make an effortless copy over to each other.
>
>Thanks
>Kev
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