Posts Virtual ListView (or "How to view 50,000 items in a ListView without dieing of old age.")
Post
Cancel

Virtual ListView (or "How to view 50,000 items in a ListView without dieing of old age.")

Have you ever needed to populate a listview with thousands of items?  I have and lemme tell you, it's not the highest performing thing around.  The only built in mechanism to help you out is to turn of the updating of the screen during the population.  However, after seeing the same question posted by Luke Huttenman, a couple of people provided some interesting links to possible solutions.

Quickly looking at the VirtualListView component (which includes C# source), it does start up very quickly with 50,000 entries.  The only drawback I see with this is the amount of redraw that occurs each time you scroll the page (or use pageup/pagedown).  Oh yeah, and it also crashed once upon closing the application.  I wouldn't consider this ready for prime time, but it's an excellent start.

Another person pointed to a C++ sample available on MSDN.  Haven't had a chance to dig into this one yet.

Hopefully Luke will find a solution, which he is attempting to utilize to improve the overall performance of SharpReader. ;-)

This post is licensed under CC BY 4.0 by the author.