Finding an item in ListView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to locate an item in ListView, quickly. I have a listview with items,
for each I added a unique "Tag" property. Is there a simple way to rapidly
search through these items to find based on its Tag value?

Tia, Stu
 
You could create a Hashtable to be used in parallel. Some memory redundancy,
but probably OK unless you have thousands of items in the ListView. The tag
value would be the key in the Hashtable.
 
Ok thanks, I thought ListCtrl used to offer this functionality, but your
suggestion will work just fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top