1

抱歉,这个基本问题。我有一个同步网格控件,它在下午 12 点显示时间格式,上午格式。基础数据源具有日期时间格式。我应该使用哪些事件将日期显示更改为 24 小时格式 Sun

4

1 回答 1

2

以下设置将使网格单元格具有 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
于 2012-06-19T11:28:06.287 回答