Esempio n. 1
0
        private void pivotGridControl1_CustomAppearance(object sender, DevExpress.XtraPivotGrid.PivotCustomAppearanceEventArgs e)
        {
            int groupIndex = GetGroupIndex((PivotGridControl)sender, e);

            if (groupIndex % 2 == 0)
            {
                e.Appearance.BackColor = Color.GreenYellow;
            }
        }
Esempio n. 2
0
 private void pivotGridControl1_CustomAppearance(object sender, DevExpress.XtraPivotGrid.PivotCustomAppearanceEventArgs e)
 {
     if (hotTrackPoint == new Point(-1, -1))
     {
         return;
     }
     if (e.RowIndex == hotTrackPoint.Y && e.ColumnIndex == hotTrackPoint.X)
     {
         e.Appearance.BackColor = Color.LightGreen;
     }
 }
Esempio n. 3
0
 private void pivotGridControl1_CustomAppearance(object sender, DevExpress.XtraPivotGrid.PivotCustomAppearanceEventArgs e)
 {
     if (object.ReferenceEquals(e.ColumnField, fieldDate) && fieldValueEnumerator != null)
     {
         if (fieldValueEnumerator.IndexOf(e.GetFieldValue(fieldYear)) % 2 > 0)
         {
             e.Appearance.BackColor = Color.GreenYellow;
         }
         else
         {
             e.Appearance.BackColor = Color.Gold;
         }
     }
 }