AD
Administrator
Syncfusion Team
December 6, 2002 10:32 PM UTC
Bob,
If you are trying to use a true virtual grid, you should never explicitly set GridControl.RowCount (or GridControl.Model.RowCount). Doing so, makes the GridData object allocate storage for that many rows. In a virtual grid, you don't want the grid to allocate any row storage. Instead, you want the grid to use exactly the same data (and hence data storage) as your external data source.
You do this by only providing the rowcount exclusiively through QueryRowCount.
So, if your external data source removes/adds rows, then try calling GridControlResetVolatileData followed by GridControl.Refresh. You should not have to do anything in regard to setting GridControl.RowCount as your QueryRowCount should auotmatically provide the correct row count based on your external data source.
Clay