473,473 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ListView FindItem

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
Nov 16 '05 #1
3 4336
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
"PL" <pl*****@pleasedontsendspam.mailhot.com> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
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

Nov 16 '05 #2
PL
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...

"AlexS" <sa***********@SPAMsympaticoPLEASE.ca> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
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
"PL" <pl*****@pleasedontsendspam.mailhot.com> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
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


Nov 16 '05 #3
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.

--
Shak
(Houston)
"PL" <pl*****@pleasedontsendspam.mailhot.com> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
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

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jon Ripley | last post by:
Using VB6 (for two weeks!) I could get a ListBox search working perfectly but with a ListView it has completely stumped me. I've not found any previous posts that have helped :( The user...
6
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
3
by: Dave Rich | last post by:
Hi I am trying to access the listview items from a SysListView32 control in C#. I am using LVM.FINDITEM and LVFINDINFO through SendMessage to try to get the text from each column in the item (it...
1
by: Mike Dyer | last post by:
Hi all, Sorry if this has been asked and answered a zillion times already. I'm converting an app to .NET from VB6, and upon first look, it seems that the new listview is "missing" some pretty...
3
by: Bikesh Lakhmichand | last post by:
How does one find an item within a listview by just the text property of an item ? I know im suppose to pass a ListViewItem to the IndexOf method but what do i set to the ListViewItem object ?...
1
by: Regis Daniel Oliveira via .NET 247 | last post by:
Hi! I developed a control that suport the FindItem Method, without need using loops. More information in http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2752&lngWId=10 ...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.