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.
Unfortunately, activation email could not send to your email. Please try again.

DataBoundGrid and RealTime Update

Thread ID:

Created:

Updated:

Platform:

Replies:

73051 Apr 17,2008 09:30 AM Apr 24,2008 05:52 PM Windows Forms 1
loading
Tags: GridControl
mattia locatelli
Asked On April 17, 2008 09:30 AM

Hi all,
I need to perform some real time update using the GridDataBoundGrid. The real time update consist of "blink" - change the color of a cell - for all the cell that changed value since the last update.
Update are triggered each 500ms by a timer and the value comes from a real time flow that changes the value in the bindingSource binded to the grid.
I know that there is a specific grid for handling real time flow but I'm required to use the GridDataBoundGrid cause we need binding.
The problem is that updating the values and blinking in the grid takes high on CPU (i.e on my PC for a grid of 500 rows and 12 column is around 12% of CPU).
Actually what I'm doing is invalidating and changing the background color of the cell using the Model_QueryCellInfo only for the cell that are updated instead of refreshing the entire grid.
There is a better a way (less CPU usage) to accomplish this task.
Attached a sample application that I use to test the CPU usage.

Thanks
ML



SyncFusion.zip

Sri Rajan [Syncfusion]
Replied On April 24, 2008 05:52 PM

Hi ML,

Thank you for your patience.

You can use the GroupingGrid for this scenario. Please refer the GroupingTraderGridTest browser sample, which demonstrates the frequent updates that occur in random cells across the gridgroupingcontrol while keeping the CPU usage at a minimum level. A timer changes cells in short intervals, inserts and removes rows.

Here is a sample path for your referene.
C:\Documents and Settings\{UserName}\My Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\Grid.Grouping.Windows\Samples\2.0\PerformanceSamples\GroupingTraderGridTest

also refers.
Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\Grid.Grouping.Windows\Samples\2.0\PerformanceSamples\RealtimeUpdates

Please let me know if this helps.

Best Regards,
Srirajan



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.

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.

;