Master/Detail relations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a table with a subtable realated. I have a BindingNavigator control
for each table. But the BindingNavigator of the "detailed" table doesn't
work, just because I can't attach to the BindingSource property the name of
the relation between the two tables.

Does any body know how to do it?

Thanks.
 
I have a table with a subtable realated. I have a BindingNavigator control
for each table. But the BindingNavigator of the "detailed" table doesn't
work, just because I can't attach to the BindingSource property the name of
the relation between the two tables.

Try this:

childBindingSource.DataSource = parentBindingSource

Then assign the DataRelation to childBindingSource.DataMember
 
Back
Top