In this example, the DetailDescriptorSelector displays different details based on the master row's content. Assign the default detail descriptor to the DetailDescriptorSelector.DefaultValue property and use DetailDescriptorTriggers to conditionally switch it to an another detail. This trigger has the Binding and Value properties which work similarly to corresponding properties in a standard WPF DataTrigger.
- MainWindow.xaml (VB: MainWindow.xaml)
- ViewModel.cs (VB: ViewModel.vb)
- Data Dependent Details
- DetailDescriptorSelector
- DetailDescriptorSelector.DefaultValue
- DetailDescriptorTrigger
- WPF Data Grid - Create Master-Detail Grid
- WPF Data Grid - Create a Master-Detail Grid in Code
- WPF Data Grid - Display Detail Content in Tabs
- WPF Data Grid - Expand and Collapse Master Rows
- WPF Data Grid - Specify Detail Buttons Visibility
(you will be redirected to DevExpress.com to submit your response)