DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004

    ListView add items is SLOW vs. VB6

    Hello all....

    Started with a VB6 app which loaded a few thousand rows/listitems into a listview (detail/report view with about 10 columns). In VB6, the load takes about .2 seconds.

    Rewrote the same code for VB.Net (2005) and it takes almost 4 seconds. Changed code to use listview.items.addrange but no improvement. Addrange seems like a convenience with no improvement is performance.

    I have searched through the ListView documentation and found nothing about improving load times for a large # of listview items. I also notice that if I already have the rows/items in the listview, making edits to the cotents of a column (say, a single column/subitem for all rows/items) is also very expensive compared to VB6.

    Any suggestions? Hard to justify porting apps from VB6 to VB.Net when such issues have a significant negative impact to the end user.

  2. #2
    Join Date
    Jun 2006
    I experienced the same exact thing you have described here.

    I found this link very helpful:

    Using virtualmode, you don't need to call items.add and you will be able to populate your listview in no time.

Similar Threads

  1. Replies: 0
    Last Post: 04-08-2002, 12:52 PM
  2. Replies: 0
    Last Post: 04-05-2002, 06:03 AM
  3. Deleting ListView items crashes VB6Sp3 ?
    By dotScience in forum VB Classic
    Replies: 4
    Last Post: 06-23-2000, 06:02 PM
  4. Replies: 12
    Last Post: 06-04-2000, 03:09 PM
  5. Replies: 0
    Last Post: 05-18-2000, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

By using this site, you agree to the Privacy Policy