Skip to main content
A newer version of this page is available. .

PivotGridControl.PrintFieldCellTemplate Property

Gets or sets a template used to print data cells. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

Declaration

public DataTemplate PrintFieldCellTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object used to print data cells.

Remarks

The PrintFieldCellTemplate is applied to those cells, whose field’s PivotGridField.PrintCellTemplate property is set to null. The PivotGridField.ActualPrintCellTemplate property allows you to obtain which template is currently used for a particular field’s data cells.

You can implement custom logic to choose the required template using the PivotGridControl.PrintFieldCellTemplateSelector property (or the PivotGridField.PrintCellTemplateSelector property to do this for individual fields).

If a field displays KPI data, the PivotGridControl.PrintFieldCellKpiTemplate and PivotGridControl.PrintFieldCellKpiTemplateSelector properties are used for this field.

To learn more, see Printing and Exporting.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PrintFieldCellTemplate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also