This question is locked. New answers and comments are not allowed.
I just create a project when it comes to editing in grid that has a datetime field, the value that appears in datetime is clear. Not like when i use date field.
when i set the Start Date and End Date like above in grid editing mode the value doesn't appear or clear. But when i set like below the values appears in edit mode.
Is there's any problem with data type ?
[ViewModel]
[DisplayName("Start Date")][DataType(DataType.DateTime), Required]public DateTime? StartDate { get; set; } [DisplayName("End Date")][DataType(DataType.DateTime), Required]public DateTime? EndDate { get; set; }[DisplayName("Start Date")][DataType(DataType.Date), Required]public DateTime? StartDate { get; set; } [DisplayName("End Date")][DataType(DataType.Date), Required]public DateTime? EndDate { get; set; }