MSDN DataGridView VirtualMode with caching sample code DataRetriever loads two pages always to cache thus making 2 database accesses.
If datagridview displays only one page, second page retrieval is unnessecary and makes DataGridView display 2 times slower.
How to change this sample code so that only one page is loaded initially and second is loaded on real demand only ?
How to change this code so that it allows more than 2 pages of cached data? 2 page limit seems to be hardcoded into this page.
Or is there some other sample code which has solved those issues ?
Andrus