How can we access the items added to a ListView?
The thing I have to do is: add an item to the list view. I want to check if the item to add to the listview is alrea
You could do something like this:
ListViewItem itemToAdd; bool exists = false; foreach (ListViewItem item in yourListView.Items) { if(item == itemToAdd) exists=true; } if(!exists) yourListView.Items.Add(itemToAdd);