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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NumericUpDown with decimal digits ?

Thread ID:

Created:

Updated:

Platform:

Replies:

1268 Oct 9,2002 11:21 AM UTC Jan 14,2006 12:06 PM UTC WinForms 6
loading
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:
if(ok)
	ok = base.OnSaveChanges();

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

Kevin
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.

CONFIRMATION

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.

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

;