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.

Is it possible to improve performance of groupingGridControl in version 3.0.1.0?

Thread ID:

Created:

Updated:

Platform:

Replies:

35903 Oct 13,2005 06:25 AM Oct 14,2005 04:01 AM Windows Forms 3
loading
Tags: GridControl
Terry Huang
Asked On October 13, 2005 06:25 AM

I''m using groupingGridControl(3.0.1.0) now. But I found the QueryCellInfo event cause the grid become very slow when scrolling or maximizing if there are many columns and row in the grid. I review the sample project "OneQueryCellInfo", but it''s only for normal grid. Is it possible to disable the query event?

Administrator [Syncfusion]
Replied On October 13, 2005 07:02 AM

There is no way currently to disable the QueryCellStyleInfo event in the GridGroupingControl. What are you using this event for? There may (or may not) be other ways to accomplish what you are using it for. In version 3.3, there is some new optimaizations that are possible depending upon exactly you are doing. That versionhas a new sample, \3.3.0.0\Windows\Grid.Windows\Samples\Grouping\EngineOptimizations, that illustrates its these techniques.

Terry Huang
Replied On October 13, 2005 08:42 PM

I didn''t want to use this event. But I found the performance is slowed down because of this event. I didn''t change anything of a cell but the cell style always be queried when scrolling or maximizing.

Administrator [Syncfusion]
Replied On October 14, 2005 04:01 AM

The grid actually uses QuerycellStyleInfo to obtain the style object anytime the cell is drawn or anytime the style is needed for any reason. It is constantly being hit. So any code you put in it should be optimized as much as possible. If you are trying to do time consuming work there if at all possible, you should cache the results of the time consuming work and just retrieve the cached work instead of doing the work on every call. Just setting e.Style.BackColor = COlor.Red in QueryCellStyleInfo will not likely slow anything down. But doing a database call in QueryCellStyleInfo to decide to set e.Style.BackColor = Color.Red will slow things down.

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.

;