Results 1 to 4 of 4

Thread: limits on listview

  1. #1
    Join Date
    Feb 2006
    Posts
    99

    limits on listview

    Hello, Can anyone please tell me what is the limits on listview's # of rows and columns? Thanks in advance.

  2. #2
    Join Date
    Jun 2006
    Posts
    623
    Here is the code i'm using. Sorry should have mentioned this earlier as there are 1612 rows inserted my listview but the following line failes at 1363 each time I run it.

    LItem = listMessages.Items(i)


    Code:
    Dim i As Integer
                Dim LItem As ListViewItem
                Dim intIndex As Integer
    
                For i = 0 To listMessages.Items.Count - 1
    
                    LItem = listMessages.Items(i)
                    If LItem.Checked = True Then
                        intIndex = LItem.Index
                        txtStatus.Text = txtStatus.Text & "REMOVING: " & LItem.Text & vbCrLf
    
                        '## Delete Email ##
                        inbox.DeleteMessage(CInt(LItem.Text), True)
    
                        '## Delete from listMessages ##
                        LItem.Remove()
                    End If
    
                Next

  3. #3
    Join Date
    Dec 2007
    Posts
    1,599
    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.

  4. #4
    Join Date
    Dec 2007
    Posts
    1,736
    It is 32767, it's the highest positive value of a signed 16-bit integer and this was tested with no columns.

Similar Threads

  1. how to use Vscrollbars with Listview
    By Suffix in forum Software Development
    Replies: 1
    Last Post: 01-10-2011, 11:46 AM
  2. Want to delete the data using the ListView
    By Flaco in forum Software Development
    Replies: 6
    Last Post: 20-01-2010, 05:42 PM
  3. Transfer the data to another listview
    By Chhaya in forum Software Development
    Replies: 3
    Last Post: 05-10-2009, 12:19 PM
  4. ListView or ListBox
    By Heather5 in forum Software Development
    Replies: 3
    Last Post: 29-08-2009, 12:10 AM
  5. Selecting item in Listview with C#
    By AmolP in forum Software Development
    Replies: 1
    Last Post: 02-02-2009, 08:47 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,565,646.11875 seconds with 17 queries