protected void GVAmount_RowDeleting(object sender, GridViewDeleteEventArgs e) { FloatAmountDAL amountDAL = new FloatAmountDAL { ConnectionString = ConfigurationManager.ConnectionStrings["MySQLTest"].ToString() }; string ID = GVAmount.DataKeys[e.RowIndex].Values["ID"].ToString(); amountDAL.DeleteAmount(ID); FetchAmount(); }