Dev

 

調用DoValidate()始終返回trueide

解決方案spa

txtCarNo.IsModified = true;
result = result & txtCarNo.DoValidate();it

 

 

LayoutControl設置LayoutControlItem的MaxSize和MinSize。io

 

對於設置的最大Size和最小Size,能夠設置simplebutton的AutoWidthInLayoutControl屬性爲true,並設置 當前simplebutton的layoutitem的 SizeConstraintsType屬性爲SupportHorzAlignment,便可使最大Size和最小Size起做用!class

GridView驗證行並取消不經過時彈窗  去掉驗證行失敗時彈出的確認框 sed

        void gv_CardTime_ValidateRow(object sender, DevExpress.XtraGrid.Views.Base.ValidateRowEventArgs e)
        {
            bool V = true;
            if (String.IsNullOrEmpty(gv_CardTime.GetFocusedRowCellDisplayText("CardTime")))
            {
                gv_CardTime.SetColumnError(gridColumn1, "時間不能爲空!");
                //e.ErrorText = "時間不能爲空!";
                V = false;
            }
            e.Valid = V;

        }



        void gv_CardTime_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e)
        {
            //去掉驗證行失敗時彈出的確認框
            e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction;
        }
慎於行,敏於思!GGGGGG
相關文章
相關標籤/搜索