DateTimePicker Value is null sometimes

0
0

Hello,

When I enter a date into a DateTimePicker via keyboard, the (Nullable)Value property is sometimes not updated correctly. It appears that it is correct in the ValueChanged event handler, but when accessing it from e.g. a button click event, it simply returns null for NullableValue (or 0001-01-01 for Value).

Please have a look at the attached test project. If you enter e.g. 2017-01-01 into the DateTimePicker text box, the label is updated correctly. But if you click on the button, it simply shows “<null>”.

Attachment
  • You must to post comments
0
0

A prerelease would be nice as this bug is quite critical to me. Database values are getting messed up.

  • You must to post comments
0
0

Hi Marian,

this is related to the problem discussed here: https://wisej.com/support/question/datetimepicker-difference-between-the-properties-text-and-value

I have checked with the bug fix for WJ-8455 and it also fixes the problem you reported.
If you want, I can send you a prerelease. Otherwise the fix will be available with the next Wisej release.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.