profiledt.Rows
Dim ds As DataSet = New DataSet() 'add 5 datatables with example data For i= 1 To 5 Dim dt As DataTable = New DataTable(String.Format("Table{0}", i)) dt.Columns.AddRange(New DataColumn() _ { _ New DataColumn("ID", Type.GetType("System.Int32")), _ New DataColumn("Description", Type.GetType("System.String")) _ }) dt.Rows.Add(New Object(){1, "SomeData"}) ds.Tables.Add(dt) Next 'get datatable by its name: Dim d = ds.Tables("Table1") 'd variable is ready to use!
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)