Skip to main content

PivotGridControl.PrintFieldCellKpiTemplateSelector Property

Gets or sets a template selector that chooses a print template for data cells that contain KPI graphics. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

public DataTemplateSelector PrintFieldCellKpiTemplateSelector { get; set; }

Property Value

Type Description
DataTemplateSelector

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

Remarks

A print template that defines the presentation of data cells that contain KPI graphics is specified by the PivotGridControl.PrintFieldCellKpiTemplate property. If you have more than one template that can be used to render cells, 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 PrintFieldCellKpiTemplateSelector property.

The PrintFieldCellKpiTemplateSelector is used for those fields whose PivotGridField.PrintCellTemplateSelector property is not specified.

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

To learn more, see Printing and Exporting.

See Also