Skip to main content

PivotGridControl.PrintFieldValueTemplateSelector Property

Gets or sets a template selector that chooses a print template for field values based on custom logic. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

#Declaration

public DataTemplateSelector PrintFieldValueTemplateSelector { 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 values when the pivot grid is printed is specified by the PivotGridControl.PrintFieldValueTemplate property. If you have more than one template that can be used to render field values, 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 PrintFieldValueTemplateSelector property.

The PrintFieldValueTemplateSelector is used for those fields whose PivotGridField.PrintValueTemplateSelector property is not specified.

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

To learn more, see Printing and Exporting.

See Also