NumericUpDown bound value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a problem w/ a data-bound numeric updown control. If I modify the
control's value via the keyboard (i.e., type in numbers), then call
AcceptChanges, the new value is not saved and reverts to the old. But if I
use the mouse to click on its up-down arrows, the value gets saved fine. I'm
suspecting that this may be a bug w/ the control so what I did was put the
following code in KeyDown:

updAge.Value = updAge.Value

This solves the problem but I'd like to know if anyone else encountered this
behavior or has a better workaround? Thanks =)
 
You may need to tab outof the control, or change focus away from the control
for the value to get commited to the data source.
 
Back
Top