Update: If your DataTable
itself is called "Sales.SalesContact", you could try setting the DataGridView.DataSource
property directly to the DataTable
(instead of the DataSet
):
Dim salesContactTable As DataTable = dataSet.Tables("Sales.SalesContact")
dataGridView.DataSource = salesContactTable
So you're saying you have a DataSet
called "Sales", which contains a table called "SalesContact"?
Did you try setting your DataGridView.DataSource
property to your "Sales" DataSet
and DataGridView.DataMember
to simply "SalesContact"?
Dan Tao
2010-09-15 12:30:26