I use the DateEdit on a form and like to update data everytime the date is changed by spinning. The DateTime Property isn't changed at all, when spinning is applied an no event besides spin is fired.
My current solution now is to start a timer and read the text when the timer fires and convert the date by hand. This is not satisfactory.
Proposed solutions:
- AfterSpin Event with ProposedDateTime in EventArgs
- or Spinning should fire DateTimeChanged and the other events
- or an extra Enum that allows Customization of this behaviour
Wait a minute. My last point made me look again, and ... I found out what to do, but it works quite contrary to the documentation.
I had to change EditValueChangedFiringMode from default to buffered. Then all events that didn't fire before are working now as expected:
dateFrom_EditValueChanging
dateFrom_TextChanged
dateFrom_EditValueChanged
dateFrom_DateTimeChanged
That means Buffered in this case doesn't delay the events but is the only way to get the events.
I think this is a bug or at least a documentation bug.
Regards,
Uwe Wittig