How to find listview item?

T

Terry Olsen

I'm using a listview control with 2 columns (in detail view).

I need to find an item by text so that I can add a subitem to it. I haven't
been successful so far.

Any help is appreciated.
 
T

Truong Hong Thi

Have you try looping through the list view items and comparing the
ListViewItem.Text?
 
S

Siva M

If you are using .NET 2.0, use ListView.FindItemWithText() method

I'm using a listview control with 2 columns (in detail view).

I need to find an item by text so that I can add a subitem to it. I haven't
been successful so far.

Any help is appreciated.
 

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

Top