int sum = 0; foreach(DataGridViewRow item in grid.Rows) { sum += item.Cells[INDEX_YOUR_VALUE].Value; }
grid.Rows.Add(YOUR_PARAMETERS_BEFORE, sum);
Sum
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)