1
對不起這個基本問題。 我有一個syncfusion網格控件,它在12pm格式中顯示時間格式。基礎數據源具有日期時間格式。 應使用哪些事件將日期顯示更改爲24小時格式 太陽帶24小時時間格式的gridcontrol syncfusion
對不起這個基本問題。 我有一個syncfusion網格控件,它在12pm格式中顯示時間格式。基礎數據源具有日期時間格式。 應使用哪些事件將日期顯示更改爲24小時格式 太陽帶24小時時間格式的gridcontrol syncfusion
以下設置將使網格單元具有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