Beispiel #1
0
        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_TTTT_DM_LOAIDUONGDAY(int.Parse(HoatDong["ID"] + ""), session.User.ma_dviqlyDN);

                _DataBind();
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "", "alert('Xoá loại dây thành công');", true);
            }
            catch (Exception ex)
            { }
            finally
            {
                e.Cancel = true;
            }
        }