We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Blink cell colours

I'm sure this is a simple one but anyone any idea how i can change the default increase/decrease blink colours on a GridGroupingControl after setting:

myGrid.BlinkTime = 700;

thanks


1 Reply

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.

Loader.
Live Chat Icon For mobile
Up arrow icon