DataControlDetailDescriptor.DataControl Property
Gets or sets the GridControl that displays detail data.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
DataControlBase | A GridControl that displays detail data. Although the property type is DataControlBase, it currently only accepts GridControl objects and otherwise, throws exceptions. |
Remarks
DataControlDetailDescriptor was specifically designed for tight master and detail view integration. In the current version, this kind of integration has been implemented only between two TableView objects. This means that you can only assign a GridControl to the DataControl property and that a detail grid control can only use a TableView to present data. In other cases, exceptions will be thrown.
The data binding for the detail grid is specified by the DataControlDetailDescriptor.ItemsSourcePath property.
Once you’ve assigned a GridControl to this property and specified the data binding, customize it’s setting to change the detail grid’s appearance and behavior. Note also that detail grids are integrated into the master grid’s Group Panel, Filter Panel and other UI Elements. The detail is identified in those elements by the string representation of the DataViewBase.DetailHeaderContent property value.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the DataControl property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.