zoukankan      html  css  js  c++  java
  • Dev

    调用DoValidate()始终返回true

    解决方案

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

    LayoutControl设置LayoutControlItem的MaxSize和MinSize。

    对于设置的最大Size和最小Size,可以设置simplebutton的AutoWidthInLayoutControl属性为true,并设置 当前simplebutton的layoutitem的 SizeConstraintsType属性为SupportHorzAlignment,即可使最大Size和最小Size起作用!

    GridView验证行并取消不通过时弹窗  去掉验证行失败时弹出的确认框

            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
  • 相关阅读:
    failed to push some refs to 'git@github.com:laniu/liuna.git'报错原因
    ECMAScript和JavaScript的关系
    js面试总结
    第16章 脚本化css
    代理模式
    SQL
    VS
    Js/Jquery获取iframe中的元素 在Iframe中获取父窗体的元素方法
    SQL
    C#
  • 原文地址:https://www.cnblogs.com/GarsonZhang/p/4310348.html
Copyright © 2011-2022 走看看