protected void grdDVT_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e) { try { SYS_Session session = (SYS_Session)Session["SYS_Session"]; var HoatDong = (DataRowView)grdDVT.GetRow(grdDVT.FocusedRowIndex); db.DELETE_CHECK_TTTT_DM_TTKD(HoatDong["MA_CANHBAO"] + ""); _DataBind(); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "", "alert('Xoá loại dây thành công');", true); } catch (Exception ex) { } finally { e.Cancel = true; } }