zoukankan      html  css  js  c++  java
  • DevExpress 设置DateEdit显示年月季度

    //显示年
    dateEdit1.Properties.ShowToday = false;
    dateEdit1.Properties.ShowMonthHeaders = false;
    dateEdit1.Properties.CalendarView = DevExpress.XtraEditors.Repository.CalendarView.Vista;
    dateEdit1.Properties.VistaCalendarInitialViewStyle = DevExpress.XtraEditors.VistaCalendarInitialViewStyle.YearsGroupView;
    dateEdit1.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.YearsGroupView;
    dateEdit1.Properties.Mask.EditMask = "yyyy";
    dateEdit1.Properties.Mask.UseMaskAsDisplayFormat = true;
    
    //显示月
    dateEdit2.Properties.ShowToday = false;
    dateEdit2.Properties.ShowMonthHeaders = true;
    dateEdit2.Properties.CalendarView = DevExpress.XtraEditors.Repository.CalendarView.Vista;
    dateEdit2.Properties.VistaCalendarInitialViewStyle = DevExpress.XtraEditors.VistaCalendarInitialViewStyle.YearView;
    dateEdit2.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.YearView;
    dateEdit2.Properties.Mask.EditMask = "yyyy-MM";
    dateEdit2.Properties.Mask.UseMaskAsDisplayFormat = true;
    
    //季度
    dateEdit3.Properties.ShowToday = false;
    dateEdit3.Properties.ShowMonthHeaders = false;
    dateEdit3.Properties.CalendarView = DevExpress.XtraEditors.Repository.CalendarView.Vista;
    dateEdit3.Properties.VistaCalendarInitialViewStyle = DevExpress.XtraEditors.VistaCalendarInitialViewStyle.QuarterView;
    dateEdit3.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.QuarterView;
    dateEdit3.Properties.Mask.EditMask = "yyyy-MM";
    dateEdit3.Properties.Mask.UseMaskAsDisplayFormat = true;
    

    在这里插入图片描述

  • 相关阅读:
    DLL文件的原理
    OD使用教程7(上) 调试篇07|解密系列
    复制独立数组的方法
    [转载 js] js正则表达式
    中国雅虎ued成员
    复制独立数组的方法
    [转载 js] js正则表达式
    以前做的flash相册
    编程的幽默
    我最早的全flash站
  • 原文地址:https://www.cnblogs.com/AlexanderZhao/p/12878791.html
Copyright © 2011-2022 走看看