Market Simulation Demo

This sample shows a typical market update simulation and how a Grid Grouping Control handles those high-frequency updates. It also discusses various built-in optimization properties.

Features:

MarketSimulation screenshot

The sample design is explained in the following illustration:

Market Simulation sample design

The engine will highlight a cell for the specified period in milliseconds if the value is increased or decreased.

This property will have no effect if the UseOldListChangedHandler is set to true.

In order to determine the record position (and y-position of the row in the display), counters need to be evaluated. This operation can cost more time than simply calling Invalidate in high-frequency update scenarios.

Also, the group caption bar needs to be updated when a record changes. Check out the TableListChangedEventArgs class for the Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.SourceListListChanged event.

It provides properties to not mark specific counters as dirty. In cases when counters are not marked dirty, InvalidateRange will be much faster. Counters only need to be marked dirty when there is a chance that the sort order is affected, if the filter-hidden state of a record is affected, or if custom counters are used.

Affected settings are:

If the record is above the current view, change the top row to minimize scrolling.

If the record is above the current view, change the top row to minimize scrolling. Changes are visible immediately.