Skip to main content

PivotGridControl.FieldHeaderListTemplateSelector Property

Gets or sets an object that chooses a template, used to display field headers in the Customization Form when they are arranged in a list. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

#Declaration

public DataTemplateSelector FieldHeaderListTemplateSelector { get; set; }

#Property Value

Type Description
DataTemplateSelector

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

#Remarks

A template that defines the presentation of field headers in the Customization Form is specified by the PivotGridControl.FieldHeaderListTemplate property. If you have more than one template that can be used to render field headers, 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 FieldHeaderListTemplateSelector property.

The FieldHeaderListTemplateSelector is used for those fields whose PivotGridField.HeaderListTemplateSelector property is not specified.

The FieldHeaderListTemplateSelector is in effect only if the PivotGridControl.FieldHeaderListTemplate property is set to null (Nothing in Visual Basic). Otherwise, the PivotGridControl.FieldHeaderListTemplate template is used.

To specify a template selector that defines a template used to display field headers when they are arranged in a tree, use the PivotGridControl.FieldHeaderTreeViewTemplateSelector property.

See Also