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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top