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

Performance + QueryCellStyleInfo

Thread ID:





48487 Aug 29,2006 01:02 PM UTC Aug 30,2006 07:54 AM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On August 29, 2006 01:02 PM UTC


our application is using a GGC which is bound to a dataset. The grid is grouped via a special column. Now we are using the QueryCellStyleInfo event to color the GroupCaptionCell. As I understand that event, its fired every time the grid is painted?

I am not sure but isn''t this a performance issue in our case? Is there a way to avoid the QueryCellStyleInfo?

Administrator [Syncfusion]
Replied On August 29, 2006 08:22 PM UTC


Setting the styleinfo properties for a particular celltype in the QueryCellStyleInfo event does not cause any performance issue, because it sets style properties only on demand. For example, refer to the code snippet in the following KB article.

In the event, the GroupCaptionCell is checked and colored. So, this conditional statement is executed only for the GroupCaptionCells visible in the screen.

Another way to color the GroupCaptionCell is by using following code snippet. If you trace the source code, you can trace out that this in turn used the QueryCellStyleInfo to color the cell.
this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.BackColor = Color.Green;

Also refer to the following KB article to set different GroupCaptionRows.

Best regards,

Administrator [Syncfusion]
Replied On August 30, 2006 07:54 AM UTC

Thank you Madhan for your fast response. I will take a closer look at your suggestions.


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

or the page will be automatically redirected to 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