PivotGridField.HeaderTemplate Property
Gets or sets a template used to display the header of the current field. This is a dependency property.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v23.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A DataTemplate object used to display the header of the current field. |
Remarks
If the HeaderTemplate is not specified, the header is displayed via the PivotGridControl.FieldHeaderTemplate template. The PivotGridField.ActualHeaderTemplate property allows you to obtain which template is currently used.
You can implement custom logic to choose the required template using the PivotGridField.HeaderTemplateSelector property.
To specify templates used to display field headers in the Field List, use the PivotGridField.HeaderListTemplate and PivotGridField.HeaderTreeViewTemplate properties.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HeaderTemplate 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.