for (int i = 0; i <= dataGridView1.RowCount ; i++)
{
mark = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);
unit = Convert.ToInt32(dataGridView1.CurrentRow.Cells[2].Value);
result += ( s1 * s);
}
but this code calculate just first row.
how i change row index?