How to traverse the list view column
<p>How to traverse the list view column so that we can check whether item in the list view column already exist or not and if it exist then change the item .</p>

<p>for example i have a list view with (quantity and item) and i want to check if the newly added item already exist in the list view then only change the quantity to quantity ++ rather then adding new item.</p>

<pre class="lang-c prettyprint-override"><code>string[] saLvwItem = new string[4];
saLvwItem[0] = a.ToString();
saLvwItem[1] = r["ItemNumber"].ToString();
saLvwItem[2] = r["ItemName"].ToString();
saLvwItem[3] = r["Price"].ToString();

ListViewItem lvi = new ListViewItem(saLvwItem);
listView1.Items.Add(lvi);
</code></pre>

<p>all the values are coming from database.</p>
