Improving Making DataGridview Virtual Mode with caching sample code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrus

    Improving Making DataGridview Virtual Mode with caching sample code

    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.

Working...