A Virtual grid enables the quick display of large data sources.
This sample illustrates the binding of a grid to an external data source so that no data actually resides in the grid. The data is provided to the grid on-demand through an event that allows furnishing requested data in the handler.
Features
QueryRowCount is raised to determine the row count for scrollbars.
In its event handler, the sample sets the count to 30,000. Returning 30 million would be just as simple.
QueryCellInfo is called to change the style information for each cell before it is drawn.
You can change the cell type, background color, alignment, or any other style by setting it inside the QueryCellInfo event handler.
QueryRowHeight is raised to determine row height for each row.
In its event handler, the sample sets the row height for every second row to be 25 pixels.