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

NumericUpDown with decimal digits ?

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

6 Replies

AD Administrator Syncfusion Team 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.

RB robert bergelson October 10, 2002 12:57 PM UTC

Thanks Clay !. This is what I needed. Bob

RB robert bergelson 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

AD Administrator Syncfusion Team 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.

KE Kevin January 13, 2006 10:24 AM UTC

Could you send me the sample? Thanks

AD Administrator Syncfusion Team January 14, 2006 12:06 PM UTC

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

Live Chat Icon For mobile
Up arrow icon