ListView FindItem

  • Thread starter Thread starter PL
  • Start date Start date
P

PL

Hi,

ListView doesn't seem to have the FindItem function anymore. What are you
using instead of that method (other than foreach in the ListView.Items)?

Thanks!

PL
 
Hi, PL

because listview items can have subitems in deep trees and several columns
code for looking up required values is responsibility of programmer.
Listview cannot know which subitems / columns to check and which not. See
ListViewItem.SubItems property.

HTH
Alex
 
Thanks for your answer. But I'm searching an other way to find an item than
to do a loop like "foreach Item in the ListView.Items" or "foreach SubItem
in the ListView.Items.SubItems". With a ListView containing a lot of data,
doing a loop isn't to fast...
 
You can still use the VB6.0 listview in .NET. In the toolbox add "Microsoft
Listview Control (SP6)." going to COM components You can use FindItem
fucntion from that axListView.
 
Back
Top