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.
 
Back
Top