Skip to content

DevExpress-Examples/how-to-use-the-parentpath-property-to-enable-the-binding-from-the-viewmodel-to-grid-t291661

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Data Grid - Use the ParentPath Property to Define the Selected Detail Row in the View Model

This example demonstrates how to bind the selected detail row to the View Model property in two way mode.

image

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.

Implementation Details

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.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

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

About

Bind the selected detail row to the View Model property in two way mode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published