This example demonstrates how to bind the selected detail row to the View Model property in two way mode.
Your detail objects should contain information about their master items to define selected and focused detail items in the View Model. Assign the DataControlDetailDescriptor.ParentPath property to the detail data source field that contains master objects. In this case, the GridControl can determine the master item associated with the detail item and select the specified row.
In this example, the DataControlDetailDescriptor.ParentPath property is set to the detail object's MasterItem property that references its master item. The combo box at the bottom contains detail items of the focused master row. You can choose a detail item in the combo box to focus this item within the grid.
- WPF Data Grid - Bind Master and Detail Focused Rows to View Model Properties
- WPF Data Grid - Create Master-Detail Grid
- WPF Data Grid - Display Detail Content in Tabs
- WPF Data Grid - Expand and Collapse Master Rows
- WPF Data Grid - Display Different Details Based on Data in the Master Row
(you will be redirected to DevExpress.com to submit your response)