Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

How do I search a list view for text?

$
0
0
I have a listview with several columns. I need to add a function to search all of the columns for a piece of text specified in a text box. Some of these columns include descriptions, so there could be several words in a cell. I'm familiar with the "finditemwithtext" method. I currently have the program written using that function. However, that will only find items that begin with the specified text. I need to be able to find text in the middle of a description.

I was thinking about cycling through the listview and using Instr to determine if the list view item contains the text, but I'm wondering if there is a better way.
Any help would be greatly appreciated.

Thanks
btmcad

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>