You will need to add another row after doing the calculations, unless its is already there (which if it is hopefully it is zeroed whenever you try to do this adding).
dataGridView1.Rows.Add();
Then you just need to set the value of each cell in the last row.
int rowIdx = dataGridView1.Rows.Count - 1;
dataGridView1.Rows[rowIdx].Cells[1].Value = sum;
dataGridView1.Rows[rowIdx].Cells[2].Value = sum1;