Skip to content

DevExpress-Examples/winforms-master-detail-separate-grids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Data Grid - How to display master-detail tables in separate grid controls

The data source in this example is a DataSet object that contains master and detail tables linked by the CustomersPersons relationship. The example shows how to display these tables in separate Grid Controls. The first grid is bound to a master table. The second grid displays details for the master row selected in the first grid.

To link two grid controls, the second grid is bound to a BindingSource component. This component is initialized as follows:

  • The BindingSource.DataSource property is set to the first grid's data source.
  • The BindingSource.DataMember property is set to CustomersPersons (the name of the relationship between the master and detail tables).

Files to Review

Documentation

See Also

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Display master-detail tables in separate grid controls.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5