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

Subclass grid to make virtual grid

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).

2 Replies

AD Administrator Syncfusion Team May 11, 2004 05:37 PM UTC

Nevermind I forgot to call ResetVolatileData


AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon