Skip to main content

PivotGridField.HeaderTreeViewTemplateSelector Property

Gets or sets an object that chooses a template used to display the field header in the Field List when headers are arranged in a tree. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v22.1.dll


public DataTemplateSelector HeaderTreeViewTemplateSelector { get; set; }

Property Value

Type Description

A DataTemplateSelector descendant that chooses a template based on custom logic.


A template that defines the presentation of the field header in the Field List is specified by the PivotGridField.HeaderTreeViewTemplate property. If you have more than one template that can be used to render the field header, you can implement custom logic to choose the required template. To do this, derive from the DataTemplateSelector class, implement the SelectTemplate method that returns a template which meets the required condition, and assign an instance of this class to the HeaderTreeViewTemplateSelector property.

The HeaderTreeViewTemplateSelector is in effect only if the PivotGridField.HeaderTreeViewTemplate property is set to null (Nothing in Visual Basic). Otherwise, the PivotGridField.HeaderTreeViewTemplate template is used.

To specify a template selector that defines a template used to display the field header when headers are arranged in a list, use the PivotGridField.HeaderListTemplateSelector property.

See Also