title: VB.Net ListView
body: <p>I am trying to use a ListView to display records from a dataset. In these records, I have 4 columns: EmployeeID, EmployeeName, CustomerID, and CustomerName. It is possible for both the Employee and Customer to be listed multiple times, but with different combinations. </p>
  
  <p>For instance, if we have Employees 1, 2, 3 and Customers A, B, C we could have:
  (1A)
  (1B)
  (1C)
  (2A)
  (2B)
  etc.</p>
  
  <p>What's going on with mine is I add say (1A) to the listView and then when it tries to add (1B) I get an error saying that it cannot add the same item.</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>With list
       .Clear()
       .Columns.Add("Employee ID")
       .Columns.Add("Employee Name")
       .Columns.Add("Customer ID")
       .Columns.Add("Customer Name")
       For Each row As UpFromCostExceptions.dtExceptionsRow In _dsExceptions.dtExceptions
           Dim lvItem As ListViewItem = .Items.Add(row.EmpID.ToString)
           lvItem.SubItems.Add(row.EmployeeName)
           lvItem.SubItems.Add(row.CustomerID)
           lvItem.SubItems.Add(row.CustomerName)
       Next
       .Refresh()
  End With
  </code></pre>
  
  <p>Anyone see what is going on? Thanks in advance for the help!</p>