Solved

NumericUpDown does not update bound data if number is manually entered

Posted on 2004-08-06
2
458 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
2 Comments
 
LVL 9

Accepted Solution

by:
s_sansanwal earned 250 total points
Comment Utility
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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Add Server Certificate in IIS from C# 6 65
import issue in bit values 3 43
Refresh Datagridview from another form 1 25
Expando 4 31
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now