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


RB robert bergelson October 10, 2002 08:57 AM

Thanks Clay !. This is what I needed. Bob


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


AD Administrator Syncfusion Team October 22, 2002 11:08 AM

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.


KE Kevin January 13, 2006 05:24 AM

Could you send me the sample? Thanks


AD Administrator Syncfusion Team January 14, 2006 07:06 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon