wpf-devexpress-dot-xpf-dot-grid-dot-detaildescriptorbase-0ed51d75.md
Gets or sets the template that will represent the Detail’s header section.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public DataTemplate HeaderContentTemplate { get; set; }
Public Property HeaderContentTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
A DataTemplate object specifying the Detail header’s content.
|
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