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

Thanks

Yes, I have already written it myself to go through each column, it's just that this process is being fired around 2,500 times, and I was wondering if it was causing a performance hit.

Kev


>~~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
Previous
Reply
Map
View

Click here to load this message in the networking platform