PivotGridField.HeaderListTemplateSelector Property
Gets or sets an object that chooses a template used to display the field header in the Customization Form when headers are arranged in a list. This is a dependency property.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Remarks
A template that defines the presentation of field header in the Customization Form is specified by the PivotGridField.HeaderListTemplate 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 HeaderListTemplateSelector property.
The HeaderListTemplateSelector is in effect only if the PivotGridField.HeaderListTemplate property is set to null (Nothing in Visual Basic). Otherwise, the PivotGridField.HeaderListTemplate template is used.
To specify a template selector that defines a template used to display the field header when headers are arranged in a tree, use the PivotGridField.HeaderTreeViewTemplateSelector property.