Tuesday, 20 November 2012

Merge To Dataset and copy Of Two Dataset

Dim ds1 As New System.Data.DataSet
            Dim ds2 As New System.Data.DataSet
            ds1 = oblGF.jktview()
            ds2 = oblGF.jktview2()
            ds1.Tables(0).TableName = "FistTable"
            ds2.Tables(0).TableName = "SecoundTable"
            ds2.Tables.Add(ds1.Tables(0).
Copy)
            'This is code for Merge to Dataset
            'ds1.Merge(ds2, True, MissingSchemaAction.Add)
            Dim ds3 As New DataSet
            ds3 = ds2

No comments:

Post a Comment