Solved

NumericUpDown does not update bound data if number is manually entered

Posted on 2004-08-06
2
496 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 250 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

728 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