John Baird
Coatesville, Pennsylvania, United States
Einar:
DataTable ds1.Tables[0] = DataSetds2.Tables[0].Copy() produces a deep copy....(structure and data)
DataTable ds1.Tables[0] = DataSetds2.Tables[0].Clone() produces a copy of the structure only.
>>I have two different datasets: datasetA and datasetB
>>>
>>>Both datasets contain the same table SameTable.
>>>
>>>How do I copy/duplicate the table from datasetA to datasetB?
>>>
>>>This does not work: datasetB.SameTable = datasetA.SameTable
>>>
>>>Thanks,
>>>Einar
>>
>>Einar,
>>
>>I think that you will have to copy the rows one by one because there are a lot of back links in a DataTable.
>
>Hmmm that was not the answer I wanted :) That was the answer I came up with myself :)
>The reason I posted my questions was to "verify" that there wasn't another way.
>Thanks for your reply.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only