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.DataSourceproperty is set to the first grid's data source. - The
BindingSource.DataMemberproperty is set toCustomersPersons(the name of the relationship between the master and detail tables).
- How to use two XtraGrid controls to display collections of persistent objects with a one-to-many association
- DevExpress WinForms Troubleshooting - Grid Control
(you will be redirected to DevExpress.com to submit your response)