[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

NumericUpDown does not update bound data if number is manually entered

Posted on 2004-08-06
2
Medium Priority
?
507 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

649 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