Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 具有24小时时间格式的gridcontrol同步融合_C#_Grid_Syncfusion - Fatal编程技术网

C# 具有24小时时间格式的gridcontrol同步融合

C# 具有24小时时间格式的gridcontrol同步融合,c#,grid,syncfusion,C#,Grid,Syncfusion,对不起,这个基本问题。 我有一个syncfusion网格控件,它以12pm,am格式显示时间格式。基础数据源具有日期时间格式。 我应该使用哪些事件将日期显示更改为24小时格式 Sun以下设置将使网格单元具有24小时格式的日期时间值 this.gridControl1[2, 2].CellValueType = typeof(DateTime); this.gridControl1[2, 2].CellValue = new DateTime(2012, 5, 23, 16, 34, 48

对不起,这个基本问题。 我有一个syncfusion网格控件,它以12pm,am格式显示时间格式。基础数据源具有日期时间格式。 我应该使用哪些事件将日期显示更改为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