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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

gridGroupingControl BlinkTime and Market Simulation

Thread ID:

Created:

Updated:

Platform:

Replies:

149189 Nov 18,2019 09:22 AM UTC Nov 19,2019 09:01 AM UTC WinForms 3
loading
Tags: GridGroupingControl
Gregory Pe
Asked On November 18, 2019 09:22 AM UTC

Hi
after calling BlinkTime_button1

why not highlight me with colors in gridGroupingControl1 if I change in dataGridView1

Regards
Gregory

Attachment: test_ggc_BlinkTime_d711adf6.rar

Arulpriya Ramalingam [Syncfusion]
Replied On 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(); 
 
 
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 


Gregory Pe
Replied On November 19, 2019 07:53 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(); 
 
 
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 Arulpriya
thank you . it works
Regards, 
Gregory


Arulpriya Ramalingam [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon