语句

日期控件(只能选不能输入) (DisableTextEditor,HideTextEditor,Standard)

      txtDate.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;

 

正则

            this.txtEND4.Properties.Mask.EditMask = "(((1[0-9])|(2[0-3])|([0-9])):[0-5][0-9])|24:00";
            this.txtEND4.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.RegEx;

    

正则(面板)  

     ((DevExpress.XtraEditors.DateEdit)this.dqDetail_TRANDATE.DetailBaseEdit).Properties.Mask.MaskType=DevExpress.XtraEditors.Mask.MaskType.RegEx;
            ((DevExpress.XtraEditors.DateEdit)this.dqDetail_TRANDATE.DetailBaseEdit).Properties.Mask.EditMask=Common.RegexHelper.GetDateRegex();

    注:GetDateRegex()  获取日期的正则表达式的字符串

 

正则(网格)  

        ((DevExpress.XtraEditors.Repository.RepositoryItemTextEdit)this.dqDetail_ACTUALDATE.GridColumn.ColumnEdit).Mask.MaskType=DevExpress.XtraEditors.Mask.MaskType.RegEx;
            ((DevExpress.XtraEditors.Repository.RepositoryItemTextEdit)this.dqDetail_ACTUALDATE.GridColumn.ColumnEdit).Mask.EditMask=Common.RegexHelper.GetDateRegex()  

            注:GetDateRegex()  获取日期的正则表达式的字符串

 

查询条件(去掉附带的按纽功能)

            ((DevExpress.XtraEditors.ButtonEdit)fSearchConditonSearchPanel.GetConditionControl("AUDITOR")).Properties.Buttons.Clear();  

 

外观

            this.week6.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.week6.AppearanceCell.Options.UseFont = true;
            this.week6.AppearanceCell.Options.UseTextOptions = true;
            this.week6.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.week6.AppearanceHeader.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.week6.AppearanceHeader.ForeColor = System.Drawing.SystemColors.Highlight;
            this.week6.AppearanceHeader.Options.UseFont = true;
            this.week6.AppearanceHeader.Options.UseForeColor = true;
            this.week6.AppearanceHeader.Options.UseTextOptions = true;
            this.week6.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.week6.Caption = "星期六";
            this.week6.FieldName = "week6";
            this.week6.Name = "week6";
            this.week6.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.week6.OptionsColumn.AllowIncrementalSearch = false;
            this.week6.OptionsColumn.AllowMove = false;
            this.week6.OptionsColumn.AllowSize = false;
            this.week6.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.week6.Visible = true;
            this.week6.VisibleIndex = 6;

posted @ 2010-05-08 08:56  Ry5  阅读(946)  评论(2编辑  收藏  举报