Version

Customizing Cells with Templates Property Reference (xamPivotGrid)

Introduction

This is a list of the most notable properties related to the Cell customization feature of the xamPivotGrid™.

Property reference summary

XamPivotGrid properties

Property Description

A collection of DataCellTemplate objects used to apply custom DataTemplates to PivotCellControls.

A collection of HeaderTemplate objects used to apply custom DataTemplates to PivotColumnHeaderCellControls.

A collection of HeaderTemplate objects used to apply custom DataTemplates to PivotRowHeaderCellControls.

DataCellTemplate properties

Property Description

When set to a string equal to the Caption of a Hierarchy currently used as a column in the xamPivotGrid, the DataTemplate set to the Template property is applied to PivotCellControls (data cells) in the columns of the hierarchy.

When set to a string equal to the HeaderText of a PivotDataColumn, the DataTemplate set to the Template property is applied to PivotCellControls (data cells) in that column.

When set to an integer value greater than 1, ensures that the DataTemplate set to the Template property is applied only to PivotCellControls (data cells) that are at that column level.

When set to a string equal to the Caption of a Hierarchy currently used as a row in the xamPivotGrid, the DataTemplate set to the Template property is applied to PivotCellControls (data cells) in the rows of the hierarchy.

When set to a string equal to the HeaderText of a PivotDataRow, the DataTemplate set to the Template property will be applied to PivotCellControls (data cells) in that row.

When set to an integer value greater than 1, ensures that the DataTemplate set to the Template property is applied only to PivotCellControls (data cells) that are at that row level.

A DataTemplate for the content of a PivotCellControl.

HeaderTemplate properties

Property Description

When set to a string equal to the Caption of a Hierarchy that is currently in use in the xamPivotGrid, the DataTemplate set to the Template property will be applied to PivotHeaderCells in that hierarchy.

When set to a string equal to the Caption of the Member of a PivotHeaderCell, the DataTemplate set to the Template property is applied to that PivotHeaderCell.

When set to an integer value greater than 1, ensures that the DataTemplate set to the Template property is applied only to PivotHeaderCells that are at that level.

A DataTemplate for the content of a PivotHeaderCell.

The following topics provide additional information related to this topic.

Topic Purpose

The xamPivotGrid control enables you to specify custom data templates for data cells and for header column and row cells. This topic is an overview of this feature.

This topic is a step-by-step walkthrough on how to customize xamPivotGrid™ cells by applying custom DataTemplates for their content.

Explanation on how to use the CellControlAttached event to apply custom styles to data cells based on the cell’s value.