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.

onQueryCellInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

73658 May 14,2008 04:47 AM May 15,2008 08:46 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 14, 2008 04:47 AM

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

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

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.


SubhaSheela R [Syncfusion]
Replied On May 15, 2008 08:46 AM

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



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.

;