Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
抱歉,这个基本问题。我有一个同步网格控件,它在下午 12 点显示时间格式,上午格式。基础数据源具有日期时间格式。我应该使用哪些事件将日期显示更改为 24 小时格式 Sun
以下设置将使网格单元格具有 24 小时格式的日期时间值。
this.gridControl1[2, 2].CellValueType = typeof(DateTime); this.gridControl1[2, 2].CellValue = new DateTime(2012, 5, 23, 16, 34, 48); this.gridControl1[2, 2].Format = "dd/mm/yy HH:mm:ss"; //Output is: 23/05/12 16:34:48