Skip to main content

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.v22.1.dll


public DataTemplate HeaderTemplate { get; set; }

Property Value

Type Description

A DataTemplate object used to display the header of the current field.


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.

See Also