Improving Making DataGridview Virtual Mode with caching sample code

A

Andrus

MSDN Winforms DataGridView VirtualMode with caching sample code
DataRetriever loads two pages always to cache thus making 2 database
accesses.

If datagridview uses one page of data, 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top