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
Norman Yuan - 22 Apr 2005 16:18 GMT
See comment inline.
> 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
> newDataSet.Tables.Add(dt);
>
[quoted text clipped - 3 lines]
>
> Thanks