I have created a ListView with three columns and I want to find a value only in specific column (e.g. PK column):
myListView.Columns.Add("Index");
myListView.Columns.Add("PK");
myListView.Columns.Add("Value");
How can I do this?
foreach (ListViewItem lvi in listView1.Items)
  if (lvi.SubItems[1].Text=="Text for search")
     MessageBox.Show("!!!!!!!");
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With