CI
Christopher Issac Sunder K
Syncfusion Team
May 8, 2010 07:15 AM UTC
Hi Colin,
Thank you for your interest in Syncfusion products.
To change the default colors of Blink increased/Reduced, you can make use of “gridGroupingControl1_TableControlPrepareViewStyleInfo” event with the following code.
gridGroupingControl1.TableControlPrepareViewStyleInfo += new GridTableControlPrepareViewStyleInfoEventHandler(gridGroupingControl1_TableControlPrepareViewStyleInfo);
:
void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e)
{
GridTableCellStyleInfo style = (GridTableCellStyleInfo)e.Inner.Style;
BlinkState bs = gridGroupingControl1.GetBlinkState(style.TableCellIdentity);
if (bs != BlinkState.None)
{
switch (bs)
{
case BlinkState.Increased:
e.Inner.Style.BackColor = Color.OliveDrab;
break;
case BlinkState.Reduced:
e.Inner.Style.BackColor = Color.Orange;
break;
}
}
}
Let me know if you have any further concerns.
Regards,
Christopher K.