Copy data from DataTable to another ?

  • Thread starter Thread starter Boba
  • Start date Start date
B

Boba

Hello,

What is the best way to create a new DataTable with
data from exists DataTable i have already in my
application ?


Thanks, Boba.
 
Hi,
If U want to copy the DataTable to maintain it as
Temporary table then U can use the DataTable.Copy method.
Incase U want to create New instance from an existing
DataTable then Use clone method to copy the structure,
then loop through all the rows, use importrows interface
to copy the row

Regards
Mahesh
 
Back
Top