My problem is outlined here: https://support.microsoft.com/kb/314043 Microsoft says: "This behavior is by design." and no workaround is provided.
I need a workaround.
I have a dataset which is populated correctly with the contents of the table name Sales.StoreContact.
When I try DataGridView1.DataMember="Sales.SalesContact" the IDE throws:
Argument Exception was unhandled.
Child list for field Sales cannot be created.
I don’t want to rename my tables either.
the dataset contains
<NewDataSet>
<Sales.SalesContact>
<SalesContactID>1</SalesContactID>
<Name>Jimmy</Name>
<ReasonType>Damaged</ReasonType>
<ModifiedDate>2010-01-05T00:00:00+00:00</ModifiedDate>
</Sales.SalesContact>
</NewDataSet>
Update: If your
DataTableitself is called “Sales.SalesContact”, you could try setting theDataGridView.DataSourceproperty directly to theDataTable(instead of theDataSet):So you’re saying you have a
DataSetcalled “Sales”, which contains a table called “SalesContact”?Did you try setting your
DataGridView.DataSourceproperty to your “Sales”DataSetandDataGridView.DataMemberto simply “SalesContact”?