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


Thread ID:





73658 May 14,2008 08:47 AM UTC May 15,2008 12:46 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On May 14, 2008 08:47 AM UTC

Hi all,
I'm using the DrawClippedGrid Method to force the repaint of some visible cells in the grid (GridDataBoundGrid or GridControl). I also have some code in the onQueryCellInfo method that I woul like to be executed each time I repaint a cell.
Now, it seems that the onQueryCellInfo method is not called for every cell I repaint.
I've attached a simple sample to show the problem.

Any help i greatly appreciated,


Administrator [Syncfusion]
Replied On May 14, 2008 09:20 AM UTC

I found out. I had SupportsPrepareViewStyleInfo set to false. If I set it to true all works well.
But I still don't understand why if is set to false sometimes the event is called and sometimes no.


SubhaSheela R [Syncfusion]
Replied On May 15, 2008 12:46 PM UTC

Hi ML,

Thanks for your interest in Syncfusion Products.

SupportsPrepareViewStyleInfo - By default, the grid will make a copy of any style object before painting and will call the "PrepareViewStyleInfo" event. Changes that are made to the style object will then be discarded after the painting. The same is with the "DrawCell" and other events. Having a copy of the style will allow you to change the style object just for the purpose of drawing. If you do not have any need for this and want to increase the scrolling performance of the grid, then try setting this property to false.

You can also refer the below forum threads for more details:



Please let me know if it helps.

Subhasheela R


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