gridGroupingControl BlinkTime and Market Simulation
Hi
after calling BlinkTime_button1
why not highlight me with colors in gridGroupingControl1 if I change in dataGridView1
why not highlight me with colors in gridGroupingControl1 if I change in dataGridView1
Regards
Gregory
Attachment: test_ggc_BlinkTime_d711adf6.rar
SIGN IN To post a reply.
3 Replies
AR
Arulpriya Ramalingam
Syncfusion Team
November 19, 2019 06:15 AM UTC
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_BlinkTime1370059772
Note 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\CS
Regards,
Arulpriya
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
Hi Arulpriya
thank you . it works
Regards,
Gregory
AR
Arulpriya Ramalingam
Syncfusion Team
November 19, 2019 09:01 AM UTC
Hi Gregory,
Thank you for the update.
We are glad that the reported scenario has been resolved at your end. If you have any other queries, please get back to us.
Regards,
Arulpriya
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
GP Gregory Pe
- Nov 18, 2019 09:22 AM UTC
- Nov 19, 2019 09:01 AM UTC