?
Solved

NumericUpDown does not update bound data if number is manually entered

Posted on 2004-08-06
2
Medium Priority
?
500 Views
Last Modified: 2008-02-01
Hi,

I use NumericUpDown controls throughout my Winforms C# application, and I bind them all to data.  Weirdly, if I enter the number manually in the control, the data will NOT be updated, whereas if I used the up or down buttons, the data WILL be updated.  Has anyone else experienced this?  If so, does anyone know of a workaround?

Thanks

Greg
0
Comment
Question by:WickedDancer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
s_sansanwal earned 1000 total points
ID: 11749184
Hi Greg,

Its because data is bind to Value property of NumericUpDown control and valueChanged event does not fire if you type in the control.(Contradictory to MSDN help)

refer: http://www.windowsforms.net/Forums/ShowPost.aspx?tabIndex=1&tabId=41&PostID=5387

Cheers,
S Sansanwal

0
 

Author Comment

by:WickedDancer
ID: 11755926
I guess I will switch to a straight text box then as my users will try entering the text in the nud contols and be understandably confused when their entries don't persist.  I am surprised MS missed this in their testing.  Thanks for confirming for me what I suspected - that it is an MS bug.

Greg
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question