Gridview Rows Columns values add after the last row cell value
<p>Here is my code</p>

<pre><code>foreach (DataGridViewRow row1 in dataGridView1.Rows)
{
    Double d1 = +Convert.ToDouble(row1.Cells[10].Value) + Convert.ToDouble(row1.Cells[10].Value);
    MessageBox.Show(""+d1);
}
</code></pre>

<p>I have maximum rows user enter data and rows will add in gridview but
<code>gridview all cell[10]</code> values add after the last row.</p>
