PivotGridControl.FieldHeaderTemplateSelector Property
Gets or sets an object that chooses a field header template based on custom logic. 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 headers is specified by the PivotGridControl.FieldHeaderTemplate 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 FieldHeaderTemplateSelector property.
The FieldHeaderTemplateSelector is used for those fields whose PivotGridField.HeaderTemplateSelector property is not specified.
The FieldHeaderTemplateSelector is in effect only if the PivotGridControl.FieldHeaderTemplate property is set to null (Nothing in Visual Basic). Otherwise, the PivotGridControl.FieldHeaderTemplate template is used.
To specify template selectors that define templates used to display a field headers in the Customization Form, use the PivotGridControl.FieldHeaderListTemplateSelector and PivotGridControl.FieldHeaderTreeViewTemplateSelector properties.