Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a DataTable from one DataSet to another DataSet
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01161735
Message ID:
01161807
Views:
15
Hi Einar,


Seeing the other posts, here is another way that should work. (In VB)
Dim SampleTable As DataTable
SampleTable = dataSetA.SameTable.Copy()
dataSetB.SameTable.Dispose()
datasetB.Tables.Add(SameTable)
HTH
John

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform