Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
17259
Error with a DateTime column in a new grid row
posted

Hi,

I have a column which is binded to a datetime field in an object. The Column style is "Date" and the data type is "System.DateTime".

Whenever I try to add a new row and I press the drop down button to see the calendar I get the following exception:

System.ArgumentOutOfRangeException: Value of '01/01/0001' is not valid for 'SelectionEnd'. 'SelectionEnd' must be greater than or equal to MinDate.
Parameter name: SelectionEnd

After I press on "Continue" I see the value 01/01/0001 in the cell.

Maybe setting the default value to today might solve it, but how do I do it?

Thanks