title: I want to sum decimal values
body: <pre><code>int sum=0;
  for ( int i=0; i &lt; dataGridView1.Rows.Count; ++i)
  {
     sum += int.Parse(dataGridView1.Rows[i].Cells[3].Value.ToString());
  }
  total.Text = sum.ToString();Value) 
  //showing error Input string was not in a correct format.
  </code></pre>
  
  <p>i have also tried with <code>sum += int.Parse(dataGridView1.Rows[i].Cells[3].Value.ToString());</code>
  but still showing error.
  and i even tried with double but still getting error</p>
  
  <p>Please help</p>