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

Grouping Blink Color

I've turned on native blinking support in the grouping control. Is there a way to change the color of the cells when the blink from the defaults?

Thanks,

Steve

3 Replies

JS Jeba S Syncfusion Team June 27, 2007 10:32 AM UTC

Hi Steve,

AllowBlink Property
Specifies whether the cell allows being highlighted when its value is changed. In such case the cell is being highlighted with colors specified in the BaseStyles collection and the time period specified in BlinkTime of the GridGroupingControl. Default value is false.

Color for Blink Cells
Add the BaseStylesForBlinking. This allows customization of the appearance of blinking Cells.

grid.Engine.AddBaseStylesForBlinking();


It will add BlinkIncrease, BlinkReduced, BlinkNewValue, BlinkNullValue, BlinkNewRecord under BaseStyles. Now you can set the color for blink cells using this :

BaseStyles[BlinkIncreased].StyleInfo.BackColor = Color.Red;
BaseStyles[BlinkReduced].StyleInfo.BackColor = Color.Pink;


Here is the video file:
http://www.syncfusion.com/Support/user/uploads/BlinkCells_6f293c4a.zip

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.


SF Steve Friendly June 27, 2007 05:33 PM UTC

Thanks, that works great!

PS: in the video it shows changing the settings and the running application responds. How did you do that? If I try it complains that it can’t be edited while debugging, etc.


>Hi Steve,

AllowBlink Property
Specifies whether the cell allows being highlighted when its value is changed. In such case the cell is being highlighted with colors specified in the BaseStyles collection and the time period specified in BlinkTime of the GridGroupingControl. Default value is false.

Color for Blink Cells
Add the BaseStylesForBlinking. This allows customization of the appearance of blinking Cells.

grid.Engine.AddBaseStylesForBlinking();


It will add BlinkIncrease, BlinkReduced, BlinkNewValue, BlinkNullValue, BlinkNewRecord under BaseStyles. Now you can set the color for blink cells using this :

BaseStyles[BlinkIncreased].StyleInfo.BackColor = Color.Red;
BaseStyles[BlinkReduced].StyleInfo.BackColor = Color.Pink;


Here is the video file:
http://www.syncfusion.com/Support/user/uploads/BlinkCells_6f293c4a.zip

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.


JS Jeba S Syncfusion Team July 2, 2007 06:33 AM UTC

Hi Steve,

Sorry for the delay in response.

You can invoke the SchemaBrowser using this code snippet and change the settings in run mode.

private void Form1_Load(object sender, System.EventArgs e)
{
GridGroupingControlSchemaBrowser frm = new GridGroupingControlSchemaBrowser(this.gridGoupingControl1);
frm.Show();
}


Kindly let us know if this helps.

Best Regards,
Jeba.

Loader.
Live Chat Icon For mobile
Up arrow icon