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

How to display the value of a NumericUpDown Cell in Hex, Dec, Oct and Bin formats?

Thread ID:

Created:

Updated:

Platform:

Replies:

30000 Jun 8,2005 02:15 PM Jun 22,2006 03:13 PM Windows Forms 4
loading
Tags: GridControl
Dongxian Li
Asked On June 8, 2005 02:15 PM

Hi, I have a gridControl that has a NumericUpDown cell, I need to show the value in Hex format(0x1d2c), Decimal format(234), Octal format(343) or binary format(010101) according to user preference, how can I do this? Thanks -Dongxian Li

Administrator [Syncfusion]
Replied On June 8, 2005 08:10 PM

You will have to derive a cell control to manage this. I do not have a sample for this, but here is a link to derived cell numericupdown that supports decimal increments. http://www.syncfusion.com/support/user/uploads/fractionnumericupdown.zip This shows how you can tweak the behavior using s derived numericupdown celltype.

Eric
Replied On June 21, 2006 11:07 PM

Hi, I used this model and it works fine. But the problem is we can''t type in decimal values into this control (up down button works fine but user sometimes may overtype a decimal number in), is that anyway we can support this as well? Million thx! Eric >Hi, >I have a gridControl that has a NumericUpDown cell, I need to show the value in Hex format(0x1d2c), Decimal format(234), Octal format(343) or binary format(010101) according to user preference, how can I do this? > >Thanks >-Dongxian Li >

Eric
Replied On June 21, 2006 11:11 PM

Hi, I used this model and it works fine. But the problem is we can''t type in decimal values into this control (up down button works fine but user sometimes may overtype a decimal number in), is that anyway we can support this as well? Million thx! Eric >Hi, >I have a gridControl that has a NumericUpDown cell, I need to show the value in Hex format(0x1d2c), Decimal format(234), Octal format(343) or binary format(010101) according to user preference, how can I do this? > >Thanks >-Dongxian Li >

Administrator [Syncfusion]
Replied On June 22, 2006 03:13 PM

Hi Eric, Could you try this code to accept the decimal Keystrokes in a FractionNumericUpDown Cell. Here is a code snippet //in FNumericUpDownCellRenderer class protected override void OnKeyPress(System.Windows.Forms.KeyPressEventArgs e) { base.OnKeyPress(e); //digits only in column2 if(!char.IsDigit(e.KeyChar)) { if( e.KeyChar != ''.'' ) e.Handled = true; } } Here is a modified sample. http://www.syncfusion.com/Support/user/uploads/FractionNumericUpDown_797cf5a.zip Let me know if this helps. Best Regards, Haneef

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

;