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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top