I have a multi-column ListView that contains Computer Name, Date of Purchase and Operating System.

I use a Linq Query to display results matching "HP" laptops which erases existing ListView items and adds rows matching my query.

string findWhat = HP";

var list = listView1.Items
   x => x.SubItems
   .Any(y => y.Text.Contains(findWhat)))


I want to be able to dynamically check-up rows whenever I search for "HP" laptops.

0 Answers