Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridControl.FieldHeaderTreeViewTemplate Property

Gets or sets a template used to display field headers in the Field List when they are arranged in a tree. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public DataTemplate FieldHeaderTreeViewTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object used to display field headers in the Field List when they are arranged in a tree.

#Remarks

The FieldHeaderTreeViewTemplate is applied to those fields whose PivotGridField.HeaderTreeViewTemplate property is set to null. The PivotGridField.ActualHeaderTreeViewTemplate 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.FieldHeaderTreeViewTemplateSelector property (or the PivotGridField.HeaderTreeViewTemplateSelector property to do this for individual fields).

To specify a template used to display field headers when they are arranged in a list, use the PivotGridControl.FieldHeaderListTemplate property.

See Also