title: Edit an item in the Listview
body: <p>I am making this simple POS application and I would like to edit a item of the listview programatically  if there is one with the same product.</p>
  
  <p>At the bottom of the code there is a condition if it finds it, that works but I am unsure how to edit the list item that is found.</p>
  
  <p>here is my current code</p>
  
  <pre><code>            Dim str(5) As String
              Dim itm As ListViewItem
                  str(0) = xmlnode(i).ChildNodes.Item(0).InnerText
                  str(1) = xmlnode(i).ChildNodes.Item(1).InnerText
                  str(2) = "£" + xmlnode(i).ChildNodes.Item(2).InnerText
                  str(3) = 1
                  str(4) = "£" &amp; xmlnode(i).ChildNodes.Item(2).InnerText * str(3) 'works out total (price * quantity)
              itm = New ListViewItem(str)
  
              Dim findItem As ListViewItem = ListView1.FindItemWithText(xmlnode(i).ChildNodes.Item(1).InnerText)
              If Not findItem Is Nothing Then
                  MsgBox("Already in list")
              Else
                  ListView1.Items.Add(itm)
  
              End If
  </code></pre>