Skip to main content

DetailDescriptorBase.HeaderContentTemplate Property

Gets or sets the template that will represent the Detail's header section.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v14.2.Core.dll

#Declaration

public DataTemplate HeaderContentTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object specifying the Detail header's content.

#Remarks

The header section is visible when the DetailDescriptorBase.ShowHeader option is enabled.

The following table describes how to specify a template's DataContent depending on the Detail type.

Detail Type Header's DataContext
ContentDetailDescriptor Header template's DataContext is defined by the ContentDetailDescriptor.HeaderContent property.
DataControlDetailDescriptor Header template's DataContext is defined by the view's DataViewBase.DetailHeaderContent property.

If the HeaderContentTemplate property is null (Nothing in Visual Basic), then the properties listed above specify the text to be displayed within header sections.

See Also