Clone datatable rows

  • Thread starter Thread starter Julián Sanz García
  • Start date Start date
J

Julián Sanz García

Hi,

I want to copy datatable rows in other datatable without using loops. Clone
method in datatable object copy table structure but not data and there is no
clone method in datarow object.
The only way i have found is import each row of the old datatable, in new
datatable. But i don't like this way very much because i think it isn't so
much optimal
Can anybody help me?

thanks a lot
 
Hi,

I want to copy datatable rows in other datatable without using loops. Clone
method in datatable object copy table structure but not data and there is no
clone method in datarow object.
The only way i have found is import each row of the old datatable, in new
datatable. But i don't like this way very much because i think it isn't so
much optimal
Can anybody help me?

thanks a lot

Instead of the Clon method, use the Copy method, that copies both
structure and data from a datatable to another
 
Back
Top