Dim custDS As DataSet = New DataSetDim ordersTable As DataTable = custDS.Tables.Add("Orders")Dim orow As DataRow'set up columns in the results tableordersTable.Columns.Add("col1", GetType(System.String))ordersTable.Columns.Add("col2", GetType(System.String))ordersTable.Columns.Add("col2", GetType(System.String))For Each object In collectionorow = ordersTable.NewRow()orow("title") = object .Titleorow("docid") = object .Document_Idorow("userid") = object .User_IdordersTable.Rows.Add(orow)NextReturn custDS