Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying rows in Datasets
Message
From
27/02/2003 10:29:58
 
 
To
27/02/2003 09:45:25
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00758746
Message ID:
00758775
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform