Maximum number of rows in a ListView?

This is a discussion on Maximum number of rows in a ListView? within the Windows Programming forums, part of the Platform Specific Boards category; Is it only limited by memory, or is there a hard limit? Any tips for handling huge amounts of data ...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    161

    Maximum number of rows in a ListView?

    Is it only limited by memory, or is there a hard limit? Any tips for handling huge amounts of data to be shown in a ListView? I thought about only loading the list with a million items at a time, assuming there's no set limit.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Quote Originally Posted by Viper187 View Post
    Is it only limited by memory, or is there a hard limit? Any tips for handling huge amounts of data to be shown in a ListView? I thought about only loading the list with a million items at a time, assuming there's no set limit.
    Loading a listview with a million items at a time may at the very minimum take a very long time to load providing it doesn't crash.

    You problably should only load the minimum necessary items This is possible with virtual list view using a LVS_OWNERDATA style. Virtual list view does not store information on its items. Instead it stores the number of items in the list. When virtual list view is redrawn it requests only the information on the items actually visible on the screen.

    Also, if memory serves me correctly, there is a 64k limit on the standard Win32 listview control. So, the only way you would possibly handle a million items is to use the virtual listview.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Shortest path algorithm with a maximum number of edges limit
    By blackslither in forum C Programming
    Replies: 4
    Last Post: 12-28-2008, 04:49 PM
  2. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 11:13 AM
  3. Issue w/ Guess My Number Program
    By mkylman in forum C++ Programming
    Replies: 5
    Last Post: 08-23-2007, 02:31 AM
  4. Random number + guessing game trouble
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-08-2007, 04:33 AM
  5. Perfect number...
    By Argo_Jeude in forum C++ Programming
    Replies: 8
    Last Post: 07-12-2005, 02:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21