J
Jan Nielsen
Hi
I have a typed dataset with a Master table (tblPersons) and a Detail table
(tblRemarks).
I have a Winform which shows person data (master data)
I would like to have a datagrid showing the detail data.
So I try to bind the datagrid like this:
DataSource: MyDataSet
And try to set DataMember to: tblPersontblRemarks
But I get an error:
"Invalid Property Value:"
"DataBinding could not find a row in the list that is suitable for all
bindings"
And then when I press OK
I receive another error:
"Datasources of type System.DBNull are not supported.
Parameter name: Datasource"
If I rightclick on a dataadapter and select Preview Data... it works fine.
Best regards
Jan
I have a typed dataset with a Master table (tblPersons) and a Detail table
(tblRemarks).
I have a Winform which shows person data (master data)
I would like to have a datagrid showing the detail data.
So I try to bind the datagrid like this:
DataSource: MyDataSet
And try to set DataMember to: tblPersontblRemarks
But I get an error:
"Invalid Property Value:"
"DataBinding could not find a row in the list that is suitable for all
bindings"
And then when I press OK
I receive another error:
"Datasources of type System.DBNull are not supported.
Parameter name: Datasource"
If I rightclick on a dataadapter and select Preview Data... it works fine.
Best regards
Jan