while you add datasource in gridview
put a line after you assign it
Dgv.AllowUserToAddRows = false;
Dgv.Rows.add();
in datagridview
cell value change
if (e.columnindex == 1)
{
double amount = 0;
For (i=0; i<= dgv.rows.count-2;i++)
{
amount += Convert.ToDouble(dgv.Row[i].Cells[1].Text.Trim());
}
dgv.rows[i].cells[1].value = amount.ToString();
}
Note put same code in
row - deleted event also...
Happy Coding!
:)