TABLE

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
my code is:

DataTable dt = myDataSet.Tables[0];
newDataSet.Tables.Add(dt);

This code generate an error... "tha table dt already belongs to a dataset"...
is there a solution to this problem? namely, I would like to reach this
aim... is there another solution code?

Thanks
 
See comment inline.

Siu said:
Hi,
my code is:

DataTable dt = myDataSet.Tables[0];

DataTabledt=myDataSet.Tables[0].Copy() //Or
myDataSet.Tables[0].Clone(), if you only need the same table structure, not
the data
 
Back
Top