I am using Windows Forms. With this code I add items to listView from comboBox.
ListViewItem lvi = new ListViewItem();
The ListView class provides a few way to check if an item exists:
It can be used like :
// assuming you had a pre-existing item
ListViewItem item = ListView1.FindItemWithText("item_key");
if (item == null)
{
// item does not exist
}
// you can also use the overloaded method to match subitems
ListViewItem item = ListView1.FindItemWithText("sub_item_text", true, 0);