Solved

NumericUpDown does not update bound data if number is manually entered

Posted on 2004-08-06
2
485 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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Google Directions API to Map URL -C#? 3 39
SqlDataBase 7 54
Service Controller 1 28
Dynamics CRM Plugin Query TotalRecordCount returning -1 13 46
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

807 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