I am new to developing UI in .net. Basically I am using a listview and I want to search through items in listview.
Suppose the list contains this:
Sno Name
1 Michael Jackson
2 John Mitchel
If I search usign the second or third term it should display all the items that match the criteria.
I tried using .FindString, but it is just searching the first term. This is not what I want. Can anyone tell me a better way to do what I want?
Just repeatedly call ListBox.FindString() until you found them all. For example:
If you need to find a match on any part of the list box item string then you can search the items like this: