Home Forums WinForms controls Xceed Grid for WinForms Editing Time in the grid Reply To: Editing Time in the grid

User (Old forums)
Member
Post count: 23064

The default editor in the grid for a DateTime column does not support time.  You will need to replace the default editor with a control that supports both date and time editing.  We do not have such a control.

You can use the CellEditorManager and CellViewerManager to replace the default editor.

e.g.:

DateTimePicker dtPicker = new DateTimePicker();

gridControl1.Columns[

“DateColumnn” ].CellEditorManager = new CellEditorManager( dtPicker, “”, true, true );

gridControl1.Columns[

“DateColumnn” ].CellViewerManager = new CellViewerManager( dtPicker, “” );

 

 

Imported from legacy forums. Posted by André (had 758 views)