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.
Unfortunately, activation email could not send to your email. Please try again.

NumericUpDown with decimal digits ?

Thread ID:





1268 Oct 9,2002 07:21 AM Jan 14,2006 07:06 AM Windows Forms 6
Tags: GridControl
robert bergelson
Asked On October 9, 2002 07:21 AM

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 01:08 PM

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 08:57 AM

Thanks Clay !. This is what I needed. Bob

robert bergelson
Replied On October 22, 2002 09:41 AM

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 11:08 AM

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 05:24 AM

Could you send me the sample? Thanks

Administrator [Syncfusion]
Replied On January 14, 2006 07:06 AM

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.

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.