ListBox and large lists

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

    #1

    ListBox and large lists

    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!
  • Brian Patterson

    #2
    Re: ListBox and large lists

    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

    "Jay" <jwamies@advanc ednpd.com> wrote in message
    news:05dc01c355 60$586ff720$a30 1280a@phx.gbl.. .[color=blue]
    > 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![/color]


    Comment

    Working...