DataControlDetailDescriptor.DataControl Property

Gets or sets the GridControl that displays detail data.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll

Declaration

public DataControlBase DataControl { get; set; }
Public Property DataControl As DataControlBase

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.

See Also