Ejemplo 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;
            }
        }
Ejemplo 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;
     }
 }
Ejemplo 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;
         }
     }
 }