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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to improve performance of groupingGridControl in version

Thread ID:





35903 Oct 13,2005 10:25 AM UTC Oct 14,2005 08:01 AM UTC WinForms 3
Tags: GridControl
Terry Huang
Asked On October 13, 2005 10:25 AM UTC

I''m using groupingGridControl( 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 11:02 AM UTC

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, \\Windows\Grid.Windows\Samples\Grouping\EngineOptimizations, that illustrates its these techniques.

Terry Huang
Replied On October 14, 2005 12:42 AM UTC

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 08:01 AM UTC

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.


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