title: Sum ListView specific column
body: <p>i'm looking solution for this case, i got a listview and i have to show a simple cashier.</p>
  
  <p><a href="http://i.stack.imgur.com/muUAg.png" rel="nofollow">Appearence</a></p>
  
  <p>And my doubt is why can i show the sum of the all items in my listview in my bottom <strong>textBoxTotal</strong></p>
  
  <pre><code>codProduto = int.Parse(txtCodProd.Text);
  nomePRod = txtNomeProd.Text;
  quantidade = int.Parse(txtQuantidade.Text);
  valorUnitario = nvo.procurarPreco(int.Parse(txtCodProd.Text));
  valorTotal = quantidade * valorUnitario;
  
  valorAcumulado += valorTotal;
  
    0   1      2             3             4      &lt;&lt;number columns
  //ID NOME QUANTIDADE VALOR_UNITARIO VALOR_TOTAL
  
  ListViewItem itens = new ListViewItem(codProduto.ToString());
  itens.SubItems.Add(nomePRod.ToString());
  itens.SubItems.Add(quantidade.ToString());
  itens.SubItems.Add(valorUnitario.ToString());
  itens.SubItems.Add(valorTotal.ToString());
  
  listView.Items.Add(itens);
  </code></pre>
  
  <p>When i tried to create a loop to catch colum with values that i need, i fail.</p>
  
  <p>something like that:</p>
  
  <pre><code>for (int i = 0; i &lt; listView.Items.Count; i++)
  //{
  //    valorAcumulado += decimal.Parse(listView.items[i].SubItems[4].Text);
  //}
  </code></pre>
  
  <p>I just need the 4 column sum and show it... even if new item is added.</p>