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. Image for the cookie policy date
close icon

onQueryCellInfo

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,
Thanks.



SyncFusionGridControl.zip

2 Replies

AD Administrator Syncfusion Team May 14, 2008 09:20 AM UTC

Hi,
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.

Thanks.



SR SubhaSheela R Syncfusion Team 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:

http://www.syncfusion.com/support/forums/message.aspx?MessageID=72137

http://www.syncfusion.com/support/forums/message.aspx?MessageID=29103

Please let me know if it helps.

Regards,
Subhasheela R



Loader.
Live Chat Icon For mobile
Up arrow icon