try with this
DataTable dt = new DataTable();
dt.Columns.Add("ColOne");
dt.Columns.Add("ColTwo");
dt.Rows.Add("aa", 10);
dt.Rows.Add("cc", 20);
dt.Rows.Add("bb", 30);
dt.Rows.Add("dd", 40);
dt.NewRow();
dataGridView1.DataSource = dt;
dataGridView1.Rows[dataGridView1.Rows.Count-1 ].Cells["ColTwo"].Value = dt.Rows.OfType<DataRow>().Sum(k => Convert.ToDouble(k["ColTwo"]));