Editor Columns DateTimePicker Format

Aug 15, 2010 at 5:47 AM

 

	protected override Control CreateControl()
{
System.Windows.Forms.DateTimePicker dtPicker = new System.Windows.Forms.DateTimePicker();
dtPicker.Format = DateTimePickerFormat.Custom;
dtPicker.CustomFormat = "yyyy-MM-dd HH:mm:ss";
//dtPicker.Format = DateTimePickerFormat.Short; dtPicker.ShowCheckBox = AllowNull; return dtPicker;
}

i create a datetimepicker columns ,and the format like this "yyyy-MM-dd HH:mm:ss",but the grid display values is not contains seconds.