title: how to add the item, quantity, price and total to the listview
body: <p>please help me,</p>
  <p>what if the customer buys many items. how to add the item, quantity, price and total to the listview. For example I press the &quot;Pay&quot; Button then the other item will show in the listview besides Milk
  I have posted images here to understand me.</p>
  <p>Thank you :)</p>
  <p><img src="https://i.stack.imgur.com/pDxov.png" alt="enter image description here" />
  <strong>Check this image</strong></p>
  <pre><code>Public Class Form1
  
      Private Sub list_column()
  
          With ListView1
              .View = View.Details
              .FullRowSelect = True
              .GridLines = True
  
              .Columns.Add(&quot;Customer&quot;)
              .Columns.Add(&quot;Item&quot;)
              .Columns.Add(&quot;Quantity&quot;)
              .Columns.Add(&quot;Price&quot;)
              .Columns.Add(&quot;Total&quot;)
              .Columns.Add(&quot;Amount Tendered&quot;)
              .Columns.Add(&quot;Amount Changed&quot;)
  
          End With
  
      End Sub
      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  
          Call list_column()
  
      End Sub
  
   Private Sub btn_Pay_Click(sender As Object, e As EventArgs) Handles btn_Pay.Click
  
          Dim Milk As Integer
          Dim Coffee As Integer
          Dim Sugar As Integer
          Dim Coke As Integer
          Dim Cotton As Integer
  
          ' Price of the product
          Milk = 10
          Coffee = 30
          Sugar = 20
          Coke = 3
          Cotton = 4
  
          Dim item As Integer
          item = ListView1.Items.Count
          Dim list As New ListViewItem(txt_CustomerName.Text)
  
          'Milk
          list.SubItems.Add(&quot;Milk&quot;)
          list.SubItems.Add(txt_Milk.Text)
          list.SubItems.Add(Milk)
          list.SubItems.Add(txt_Total.Text)
          list.SubItems.Add(txt_AmountTendered.Text)
          list.SubItems.Add(txt_AmountChanged.Text)
          ListView1.Items.Add(list)
  
      End Sub
  End Class
  </code></pre>