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;
    

    在这里插入图片描述

  • 相关阅读:
    CentOS 6.3下安装腾达USB无线网卡遇到的问题及解决方法
    验证resneXt,densenet,mobilenet和SENet的特色结构
    比较语义分割的几种结构:FCN,UNET,SegNet,PSPNet和Deeplab
    比较 VGG, resnet和inception的图像分类效果
    强化学习基础
    深度学习的知识点
    卷积神经网络CNN
    信息论的知识点
    理论机器学习
    计算理论基础
  • 原文地址:https://www.cnblogs.com/AlexanderZhao/p/12878791.html
Copyright © 2011-2022 走看看