The PivotGridControl.CustomValueAppearance event is fired for each Field Value cell after the PivotGridControl layout changes, allowing you to specify brushes used to paint the background and foreground of the processed field value cell. To do this, use the Background and Foreground properties provided by the PivotCustomValueAppearanceEventArgs class, respectively.
Use the IsExporting property to obtain whether the pivot grid is being exported (or printed). If the IsExporting property returns true, brushes assigned to the Background and Foreground properties will affect the processed field value cell's export (or print) appearance. Otherwise, these brushes will affect the field value cell's display appearance.
System.Object
System.EventArgs
System.Windows.RoutedEventArgs
PivotFieldEventArgs
PivotFieldValueEventArgs
PivotCustomValueAppearanceEventArgs