ListBox and large lists

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Hi, I have a very large list that I would like to have
displayed in a ListBox. Trying to load the entire list
takes WAY too long. Is there any kind of buffer I can
use to allow part of the list to be displayed at one time?

The listbox I am trying to use is in the
System.Windows.Forms namespace.

Thanks in advance!
 
Is the data in a database. If so you could always pull out a certain about
of records (lets say 20) and then monitor where at in the ListBox the person
is viewing. If they scroll down a certain amount - say (Items.Count -2) then
grab the next 20 from the database and add them to the ListBox.

Sounds cool in theory but it'll be a pain to code. :-)

Brian Patterson
 
Back
Top