protected void On_RowDeleteAccount(object sender, GridViewDeleteEventArgs e) { int ID = Convert.ToInt32(Grid_Account.DataKeys[e.RowIndex].Value.ToString()); ToolsAdmin.Delete_ShopCartWhenDeleteBill(ID); ToolsAdmin.Delete_BillWhenDeleteCustomer(ID); if (ToolsAdmin.Delete_Customer(ID)) { if (HD_Name.Value == "") { Load_Grid_Account(); } else { Load_SearchAccount_ByName(); } } else { WebMsgBox.Show("Error Delete"); } }