Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个ListView三列,我只想在特定列(例如PK列)中找到一个值:
ListView
PK
myListView.Columns.Add("Index"); myListView.Columns.Add("PK"); myListView.Columns.Add("Value");
我怎样才能做到这一点?
foreach (ListViewItem lvi in listView1.Items) if (lvi.SubItems[1].Text=="Text for search") MessageBox.Show("!!!!!!!");