2012-04-15 24 views

回答

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 
相關問題