title: Sum Column in DataGridView ignore negative numbers
body: <p>Hello I need to ignore negative numbers in a sum of a DGV column.  The code I am using to add the values is as follows:</p>
  
  <pre><code>private double DGVTotal()
      {
          double tot = 0;
          int i = 0;
          for (i = 0; i &lt; dataGridView1.Rows.Count; i++)
          {
              tot = tot + Convert.ToDouble(dataGridView1.Rows[i].Cells["Total"].Value);
          }
          return tot;
      }
  </code></pre>
  
  <p>How would I change that so if the value of the Row is a negative number to not have it be included in the sum?</p>
  
  <p>Thanks!</p>
  
  <p>Kor</p>