Re: help with listview box please!!!

Tech-Archive recommends: Fix windows errors by optimizing your registry



Obviously, there would be little point in having them if you could not get
at the content!
If in doubt try the reverse of what you did to put the data into whatever
you are trying to get data out of.

To compare the main column with X:
If lv.Listitem(Index).Text = X Then
For a subitem in column 1:
If lv.Listitem(Index).SubItem(1) = X Then
You can work out how to get to column 2 yourself!

Regards
Dave O.

"Sizeak" <Sizeak@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:78F6E6DF-0E8B-4178-99A9-7DCC19D3EE4A@xxxxxxxxxxxxxxxx
Just one more stupid question, is it possible to compare against one of
the
subitems rather than the main column. eg if test was equal to the second
column in the list?


.



Relevant Pages

  • Re: List View Q
    ... If your value is in e.g. subitem 2, compare that subitem with the content of ... > I have a textbox that holds a product code called txtDtlProdCode.Text ... > For Each lvi As ListViewItem In lstOrderDtl.Items ... to compare them as above. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: ListView FindItem
    ... "Dave O." ... delimiter that will never appear in the subitem then declare a string and add each subitem to the string separated by the delimiter, then just use Instr to see if you already have the subitem listed. ...
    (microsoft.public.vb.general.discussion)
  • Re: listview subitem
    ... How can I add Subitem? ... "David Lowndes" wrote in message ... > If you're using native SDK you use the LVM_SETITEMTEXT message, ...
    (microsoft.public.dotnet.languages.vc)