
adding a data table to a dataset
Instead of adding the table to the second dataset, try to merge it.
This help topic has more info on merge.
ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconmergingdatasetcontents.htm
-Ed
Visual Basic Test Team
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Quote:
> Lets say we i have 2 datasets - Dataset1 and Dataset2. Is it possible that
> the datatable of Dataset2, is added as another table of Dataset1?
> I tired to do it this way , but it gives me an error saying that the
> datatable already belongs to a dataset. Here is what i tried:
> Dim oMyDataTable As DataTable = oDataSet2.Tables(0)
> oDataSet1.Tables.Add(oMyDataTable)
> oOutstandingBalancesDS.AcceptChanges()
> <<<<<
> Is there any other alternate way of combining 2 tables returned from 2
> different datasets ?
> Thanks
> Jyotsna