gridGroupingControl1.BlinkTime = 700; // in ms
//for (int i = 1; i <= 8; i++)
foreach (GridColumnDescriptor col in gridGroupingControl1.TableDescriptor.Columns)
col.AllowBlink = true;
gridGroupingControl1.Engine.AddBaseStylesForBlinking();
gridGroupingControl1.BaseStyles[GridEngine.BlinkIncreased].StyleInfo.TextColor = Color.Black;
gridGroupingControl1.BaseStyles[GridEngine.BlinkIncreased].StyleInfo.BackColor = Color.LightGreen;
gridGroupingControl1.BaseStyles[GridEngine.BlinkReduced].StyleInfo.TextColor = Color.Black;
gridGroupingControl1.BaseStyles[GridEngine.BlinkReduced].StyleInfo.BackColor = Color.LightBlue;
gridGroupingControl1.InvalidateAllWhenListChanged = false;
gridGroupingControl1.UpdateDisplayFrequency = 0;
gridGroupingControl1.UpdateDisplayFrequency = 10; gridGroupingControl1.SortPositionChangedBehavior = GridListChangedInsertRemoveBehavior.ScrollWithImmediateUpdate;
gridGroupingControl1.InsertRemoveBehavior = GridListChangedInsertRemoveBehavior.ScrollWithImmediateUpdate;
timer.Interval = 700;
timer.Start(); |
gridGroupingControl1.UseDefaultsForFasterDrawing = true;
// (or)
gridGroupingControl1.InvalidateAllWhenListChanged = false; |
Hi Gregory,Thank you for using syncfusion products.We have analyzed the provided sample, in which the datasource of the grid (myDataTable) is not updated dynamically based on specified interval. Moreover, the blink style for the columns are not added and we have modified the sample to update the data at runtime to blink the cells. Please make use of the below code and modified sample.Example code
gridGroupingControl1.BlinkTime = 700; // in ms//for (int i = 1; i <= 8; i++)foreach (GridColumnDescriptor col in gridGroupingControl1.TableDescriptor.Columns)col.AllowBlink = true;gridGroupingControl1.Engine.AddBaseStylesForBlinking();gridGroupingControl1.BaseStyles[GridEngine.BlinkIncreased].StyleInfo.TextColor = Color.Black;gridGroupingControl1.BaseStyles[GridEngine.BlinkIncreased].StyleInfo.BackColor = Color.LightGreen;gridGroupingControl1.BaseStyles[GridEngine.BlinkReduced].StyleInfo.TextColor = Color.Black;gridGroupingControl1.BaseStyles[GridEngine.BlinkReduced].StyleInfo.BackColor = Color.LightBlue;gridGroupingControl1.InvalidateAllWhenListChanged = false;gridGroupingControl1.UpdateDisplayFrequency = 0;gridGroupingControl1.UpdateDisplayFrequency = 10; gridGroupingControl1.SortPositionChangedBehavior = GridListChangedInsertRemoveBehavior.ScrollWithImmediateUpdate;gridGroupingControl1.InsertRemoveBehavior = GridListChangedInsertRemoveBehavior.ScrollWithImmediateUpdate;timer.Interval = 700;timer.Start();Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/test_ggc_BlinkTime1370059772Note any one of the following suggestion should be added for the grid to update the blink colors.
gridGroupingControl1.UseDefaultsForFasterDrawing = true;// (or)gridGroupingControl1.InvalidateAllWhenListChanged = false;Dashboard sample location for further reference:<Instaled_Location>\Syncfusion\EssentialStudio\Windows\Grid.Grouping.Windows\Samples\Performance\Market Simulation Demo\CSRegards,Arulpriya