We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NumericUpDown with decimal digits ?

Thread ID:





1268 Oct 9,2002 11:21 AM UTC Jan 14,2006 12:06 PM UTC WinForms 6
Tags: GridControl
robert bergelson
Asked On October 9, 2002 11:21 AM UTC

Is there a way to get a cell of type NumericUpDown to performs edits at granularity finer than integer units ?. By this I mean is there a NumericUpDown renderer which can show decimal digits and click up/down in units of .1 or .01 or .001 etc. ?

Administrator [Syncfusion]
Replied On October 9, 2002 05:08 PM UTC

The standard control requires ints, but you can derive a similar control that uses doubles. Attached is an initial try at it.

robert bergelson
Replied On October 10, 2002 12:57 PM UTC

Thanks Clay !. This is what I needed. Bob

robert bergelson
Replied On October 22, 2002 01:41 PM UTC

Clay, In the example you provided, the result is not saved to the cell once the cell looses focus. How do I change this behavior ? Bob

Administrator [Syncfusion]
Replied On October 22, 2002 03:08 PM UTC

In the FNumericUpDownCellRenderer.OnSaveChanges method, right at the bottom, add this code:
	ok = base.OnSaveChanges();

return ok;  // line already there...
This should allow the changes to be saved.

Replied On January 13, 2006 10:24 AM UTC

Could you send me the sample? Thanks

Administrator [Syncfusion]
Replied On January 14, 2006 12:06 PM UTC

Hi Kevin, Here is the sample: FractionNumericUpDown.zip Best Regards, Jeba.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon