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.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HeaderContentTemplate 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.

See Also