This example shows how to to apply a custom appearance to a set of cells, corresponding to the same field values. Even and odd sets of cells are painted with different colors.
Use the PivotGridControl.GetFieldValue method to get field value by a column index. Then, compare field values, corresponding to a processed cell, with field values, corresponding to a previous cell. Handle the PivotGridControl.CustomAppearance event to paint an even cells group green-yelow.
- Form1.cs (VB: Form1.vb)
- Program.cs (VB: Program.vb)