Accessing Tables in Dataset

Phreak

Well-known member
Joined
Jun 7, 2002
Messages
62
Location
Iowa, United States
If I have multiple tables "cached" in a dataset, and a dropdown list of those tables, how can I set my datagrid to display these tables in the datagrid?

For example I have:

With DataGrid1
.DataSource = dsSeedList.Tables(CType(cmbTables.SelectedItem, String))
.AllowSorting = True
.AlternatingBackColor = System.Drawing.Color.Beige
.SetDataBinding(DataSet11, getTable)
End With

but that doesnt work. Anywhelp?
 
After setting the DataSource, I believe all you need to do is to
call the DataBind method of the DataGrid.
 
Back
Top