Home Forums WinForms controls Xceed Grid for WinForms MasterDetailModes Sample Reply To: MasterDetailModes Sample

User (Old forums)
Member
Post count: 23064

I’m not totally sure I understand what your problem is, but you need to define a dataset in VS, normally using the designer. Once you have you dataset, you need to define a relationship between your tables, and the set the grids to bind to the appropriate objects :

gridControl1.SetDataBinding( dataSet11.Customers, “” );
detailGridTemplate1.SetDataBinding( dataSet11.Customers, “CustomersOrders” );

In this case, the master grid is bound to the Customers table, and the DetailGrid is bound to the relationship between the Customers and the Orders tables.

Imported from legacy forums. Posted by André (had 331 views)