Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 60975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:14:46+00:00 2026-05-10T18:14:46+00:00

I have an app with a large ListView which is terribly slow so I’m

  • 0

I have an app with a large ListView which is terribly slow so I’m implementing VirtualMode. MSDN does not seem to cover how I would add and delete new items in the middle of the listview.

For example, the ListView has 1000 items (representing files on disk) and after the initial population of the ListView (by the RetrieveVirtualItem event) some files will be deleted and some added so that VirtualListSize might even be the same after the update.

Question 1) How do I say to the ListView ‘these items have been changed/deleted’ so that it requeries?

Additionally, some of files just change and I’d like to reflect their changed status in the listview.

Question 2) How do I find an item in the listview given that VirtualMode does not let me access the Items collection that I was using before (I used the ContainsKey method on that collection).

Sounds easy, but I can’t see it myself. Help greatly appreciated.

Ryan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:14:46+00:00Added an answer on May 10, 2026 at 6:14 pm

    To add or delete items, simplay set VirtualListSize to the total count of items. To refresh individual items use RedrawItems.

    To locate a particular item, you use the container you already have, don’t go back to the ListView. The indicies within your list should match up with the items from the ListView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large app, 1.5 million lines of C++, which is currently
I have an app which displays a large amount of text for the user
I have an Erlang app which makes a large number of http client calls
We have a very large app which has been designed exclusively by a single
I have an app which operates a large quantity (~100) of bitmaps - i.e.
I have a VB6 app which is used by a large number of clients.
I have an app that needs to handle very large strings between a SQL
I have a large Java app that is split up into multiple projects. Each
I have a large classic ASP app that I have to maintain, and I
I have a rather large (80k loc) java desktop app that talks to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.