Hello, I'm trying to make date and time both editable in a GridViewDateTimeColumn. I declare a column with this code:
I tried DateTimePicker and TimePicker alike.
In DateTimePicker the time is always 12:00. If I want to edit the field with keyboard only (no additional window) I only see the date in the editbox, the time vanishes on edit mode. In TimePicker I can edit date in edit mode.
My questions are:
1) How to make time editable in DateTimePicker?
2) Is there a WinForms control that allows editing date and time in additional window mode?
Thank you in advance for your answers.
Best wishes,
Mariusz
column = new GridViewDateTimeColumn(def.Name);string dataFormatString = (def.CustomString == null ? "yyyy-MM-dd hh:mm:ss" : def.CustomString);((GridViewDateTimeColumn)column).EditorType = GridViewDateTimeEditorType.TimePicker;((GridViewDateTimeColumn)column).FormatString = dataFormatString;((GridViewDateTimeColumn)column).CustomFormat = dataFormatString;In DateTimePicker the time is always 12:00. If I want to edit the field with keyboard only (no additional window) I only see the date in the editbox, the time vanishes on edit mode. In TimePicker I can edit date in edit mode.
My questions are:
1) How to make time editable in DateTimePicker?
2) Is there a WinForms control that allows editing date and time in additional window mode?
Thank you in advance for your answers.
Best wishes,
Mariusz