Sub Main() 'Here is Two DataTables. Dim table1 As DataTable = New DataTable("doctors") table1.Columns.Add("name") table1.Columns.Add("id") table1.Rows.Add("sohan", 1) table1.Rows.Add("Waris", 2) Dim table2 As DataTable = New DataTable("college") table2.Columns.Add("id") table2.Columns.Add("college") table2.Rows.Add(1, "ramjas") table2.Rows.Add(2, "dav") ' Create a DataSet. Put both tables in it. Dim set1 As DataSet = New DataSet("office") set1.Tables.Add(table1) set1.Tables.Add(table2) ' Visualize DataSet. Console.WriteLine(set1.GetXml()) End Sub
Thursday, 29 March 2012
In program how can we use dataset in vb.net
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment