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

Subclass grid to make virtual grid

Thread ID:





13817 May 11,2004 04:59 PM UTC May 11,2004 05:48 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On May 11, 2004 04:59 PM UTC

Is it possible to subclass the grid control to make a virtual grid control. I basically want to reuse a virtual grid in a bunch of places and would like to just reference it as myVirtualGrid. I am having issues with overriding the querycell count and querycell info. The querycellcount never gets called and the grid appears to have only 100 rows. Also the OnQueryCellInfo gets called but the display shows the row 1 data over and over again (even though debug mode its getting set fine).

Administrator [Syncfusion]
Replied On May 11, 2004 05:37 PM UTC

Nevermind I forgot to call ResetVolatileData

Administrator [Syncfusion]
Replied On May 11, 2004 05:48 PM UTC

After you have created the instance of your derived grid, make sure you call myDerivedGrid.ResetVolatileData(). This should force OnQueryColCount and OnQueryRowCount to be hit. Here is a minimal sample that seems to work OK. derivedVirtualGrid_7742.zip


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

Live Chat Icon For mobile
Live Chat Icon