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
 

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