PivotGridField.CellTemplate Property
Gets or sets a template used to display cells that correspond to the current field. This is a dependency property.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.PivotGrid, DevExpress.Wpf.PivotGrid
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A DataTemplate object used to display cells that correspond to the current field. |
Remarks
If the CellTemplate is not specified, the cells are displayed via the PivotGridControl.FieldCellTemplate template (or the PivotGridControl.FieldCellKpiTemplate if this field displays KPI graphics). The PivotGridField.ActualCellTemplate property allows you to obtain which template is currently used.
You can implement custom logic to choose the required template using the PivotGridField.CellTemplateSelector property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CellTemplate 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.