Copy a DataTable

  • Thread starter Thread starter roger.cantillo
  • Start date Start date
R

roger.cantillo

Hi,

I'm running code that creates a new datatable based on filtered
datatable. My code uses the Select method to filter the data and loops
throw each row to copy its contents to the new datatable. My question
is, is there a better/faster method of performing this task, rather
than looping through the datatable?

Thanks in advance,

Roger
 
Roger,

In version 2005 you can use the DataView.ToTable

I hope this helps,

Cor
 
Roger,

Than I do not know a better method. They did not add it to Version 2005 for
nothing of course.

Cor
 
Back
Top