How do I get the start index and number of visible items in a ListView?

前端 未结 7 1949
迷失自我
迷失自我 2020-12-21 02:37

I have a listview working in virtual mode, in the LargeIcons view. Retrieves are expensive, so I want to ask for the data for all the visible items. How do I get the start

相关标签:
7条回答
  • 2020-12-21 03:35

    Have you seen the CacheVirtualItems event? The control will ask for a range of items instead of one-by-one. Tho, if scrolling, it still may ask for only one at a time. But pagedown/up will trigger the cache mechanism.

    0 讨论(0)
提交回复
热议问题