Skip to main content

PivotGridControl.FieldHeaderTemplate Property

Gets or sets a template used to display field headers. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

public DataTemplate FieldHeaderTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object used to display field headers.

Remarks

The FieldHeaderTemplate is applied to those fields whose PivotGridField.HeaderTemplate property is set to null. The PivotGridField.ActualHeaderTemplate property allows you to obtain which template is currently used for a particular field.

You can implement custom logic to choose the required template using the PivotGridControl.FieldHeaderTemplateSelector property (or the PivotGridField.HeaderTemplateSelector property to do this for individual fields).

To specify templates used to display field headers in the Field List, use the PivotGridControl.FieldHeaderListTemplate and PivotGridControl.FieldHeaderTreeViewTemplate properties.

See Also