when i am deleting row from gridview, then footer total and textbox which is outside from gridview amount is not getting less.
as your provided Solution
Calculating footer total txtrecamt is textbox which is located outside gridview.
protected void txtamount_TextChanged(object sender, EventArgs e)
{
decimal total = 0;
foreach (GridViewRow row in gvtrans.Rows)
{
TextBox Debits = row.FindControl("txtamount") as TextBox;
total += Convert.ToDecimal(Debits.Text == "" ? "0" : Debits.Text);
}
Session["DebitTotal"] = total;
(gvtrans.FooterRow.FindControl("lblTotal") as Label).Text = total.ToString();
txtrecamt.Text = (gvtrans.FooterRow.FindControl("lblTotal") as Label).Text;
}