protected void grid_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            this.nhomchuyennganh = obj.GetNhomChuyenNganh(Int32.Parse(e.Keys[grid.KeyFieldName].ToString()));
            if (this.nhomchuyennganh != null)
            {
                this.obj.XoaNhomChuyenNganh(this.nhomchuyennganh);
            }

            grid.CancelEdit();
            e.Cancel        = true;
            grid.DataSource = obj.GetNhomChuyenNganhs();
            grid.DataBind();
        }
        protected void grid_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            ASPxTextBox text      = grid.FindEditFormTemplateControl("txtName") as ASPxTextBox;
            ASPxTextBox txtMaNhom = grid.FindEditFormTemplateControl("txtMaNhom") as ASPxTextBox;

            this.nhomchuyennganh        = obj.GetNhomChuyenNganh(Int32.Parse(e.Keys[grid.KeyFieldName].ToString()));
            this.nhomchuyennganh.MaNhom = txtMaNhom.Text;

            this.nhomchuyennganh.NhomChuyenNganh = text.Text;

            this.obj.CapNhatNhomChuyenNganh(this.nhomchuyennganh);


            grid.CancelEdit();
            e.Cancel        = true;
            grid.DataSource = obj.GetNhomChuyenNganhs();
            grid.DataBind();
        }