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

Using float or double in Numericupdown

Thread ID:





83800 Jun 27,2009 08:47 AM UTC Jul 1,2009 05:02 AM UTC WinForms 1
Tags: GridControl
Elaiyaraja Kasinathan
Asked On June 27, 2009 08:47 AM UTC

It seems only int data can be used with NumericUpDown cell type in GridControl,
Is there any way to use floating data in Numericupdown cell type?

Jisha Joy [Syncfusion]
Replied On July 1, 2009 05:02 AM UTC

Hi Elaiyaraja,

You need to use a custom celltype to achieve the desired behavior. In general, a cell type requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell, such as drawing and handling mouse actions. Please refer the following sample form our sample browser that shows this.

..\my documents\syncfusion\essentialstudio\\Windows\Grid.Windows\Samples\2.0\Custom Cell Type\Enhanced Numeric Up-Down Cell Demo\cs

It is having the following features:


Up and down buttons are associated with the control and let the user increase or decrease numeric values

An enhanced UpDown control allows decimal increments and decrements and has options to decrease the number beyond zero

It also allows increments and decrements via the arrow keys from keyboard

Two classes that play a major role in creating the UpDown controls are the EnhancedUpDownButton class and the FloatNumericUpDownStyleProperties class

EnhancedUpDownButton class inherits the GridCellUpDownButton class and is used to create up-down buttons in grid cells

The FloatNumericUpDownStyleProperties class defines necessary style properties for the customization of an up-down cell

Please let me know if this helps.



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