Back to Devexpress

Master-Detail Member Table

wpf-11836-controls-and-libraries-data-grid-master-detail-master-detail-member-table.md

latest6.1 KB
Original Source

Master-Detail Member Table

  • Dec 06, 2022
  • 3 minutes to read

This topic lists the key members that you will use when building master-detail hierarchies using the GridControl.

Enable Detail Views

Class / MemberDescription
TableView.AllowMasterDetailGets or sets whether end-users can access this View’s details.
GridControl.DetailDescriptorEnables master-detail representation within this GridControl.

Data Grid in Detail

Class / MemberDescription
DataControlDetailDescriptorRepresents a detail that displays a grid control and natively integrates with the master grid.
DataControlDetailDescriptor.ItemsSourcePathGets or sets the detail grid’s data binding by specifying the path relative to the master grid’s records.
DataViewBase.DetailHeaderContentGets or sets the detail section’s header content.

Custom Content in Detail

Class / MemberDescription
ContentDetailDescriptorRepresents a Detail with freely-customizable content.
DetailDescriptorBase.ContentTemplateGets or sets the template specifying the entire or partial content of a Detail.
ContentDetailDescriptor.HeaderContentGets or sets the detail section’s header content. This is a dependency property.

Tabbed View for Details

Class / MemberDescription
TabViewDetailDescriptorDisplays multiple Details within a tabbed container.
MultiDetailDescriptor.DetailDescriptorsProvides access to Detail Descriptors to be displayed by this multi-detail container.

Expand and Collapse Master Rows

Class / MemberDescription
GridControl.ExpandMasterRowExpands the specified master row and, optionally, shows the specified Detail.
GridControl.CollapseMasterRowCollapses the detail section for the specified row.
GridControl.SetMasterRowExpandedChanges the expanded state for a specified master row and, optionally, shows a specified Detail.
GridControl.IsMasterRowExpandedDetermines the specified master row’s expanded state and, optionally, the specified Detail’s visibility.
GridControl.MasterRowExpandingEnables you to specify whether a master row may be expanded.
GridControl.MasterRowCollapsingEnables you to specify whether a master row may be collapsed.
GridControl.MasterRowExpandedFires immediately after a master row has been expanded.
GridControl.MasterRowCollapsedFires immediately after a master row has been collapsed.
TableView.IsDetailButtonVisibleBindingGets or sets the binding that determines which rows display detail expand buttons.
TableView.ShowDetailButtonsGets or sets whether to display expand buttons within master rows.

Obtain Details

Class / MemberDescription
GridControl.GetDetailReturns the detail data control identified by the master row and its Detail Descriptor.
GridControl.GetVisibleDetailReturns the currently visible detail data control identified by its master row.
GridControl.GetVisibleDetailDescriptorReturns the Detail Descriptor corresponding to the currently expanded detail of the specified master row.

Printing and Exporting

Class / MemberDescription
TableView.AllowPrintDetailsGets or sets whether to print View’s details. This is a dependency property.
TableView.AllowPrintEmptyDetailsGets or sets whether to print/export empty details. This is a dependency property.
TableView.PrintDetailTopIndentGets or sets the top print detail indent. This is a dependency property.
TableView.PrintDetailBottomIndentGets or sets the bottom print detail indent. This is a dependency property.

See Also

Master-Detail Mode Limitations