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

Applying formats to decimal textbox

Thread ID:

Created:

Updated:

Platform:

Replies:

10749 Feb 11,2004 02:49 PM UTC Feb 12,2004 04:54 PM UTC WinForms 3
loading
Tags: Tools
Administrator [Syncfusion]
Asked On February 11, 2004 02:49 PM UTC

Hi, I am using decimal textbox in 1.6.1.8 on win2k/XP/vs.net 2003. I am trying to get the decimal textbox to display numbers in several formats (like the ones we can define in DataboundGrid). Mainly I want to control: - How many decimal digits I have - How many zeros I want to show - How many optional decimal digits I want to show. If these optional decimal digits are not present, I dont want to show anything starting from the decimal ''.''. Format Example ---------------------------------------------- ###,###,###.00 123,456,789.76 or 874,123.00 ###,###,###.## 123,456,789 or 765,412.9 or 765,412.42 ###,###,###.00### 123,456,789.00 or 123,345.12 or 969,123.12345 I don''t want to use masked textbox. How can I achieve this functionality in decimal textbox? thanks, - Reddy

Administrator [Syncfusion]
Replied On February 11, 2004 08:37 PM UTC

Hi Reddy, 1. You could specify the number of decimal digits you wish to display by assigning the desired value to DoubleTextBox''s NumberDecimalDigits property. 2. Are you referring number of zeroes displayed after the decimal point ? If so, would the property mentioned in (1) meet your requirements ? Please let me know about this. 3. The DoubleTextBox does not have any property/method to handle the optional digits. I have consulted the development team for their inputs on this issue and will keep you updated. We appreciate your cooperation, and thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On February 11, 2004 09:43 PM UTC

Guru, I am aware of the NumDecimalDigits property. But it only satisfies the "###,###,###.00" format. Can you see how we an get the "###,###,###.#####" and "###,###,###.00###" kind of formats. thanks, - Reddy

Administrator [Syncfusion]
Replied On February 12, 2004 04:54 PM UTC

Hi Reddy, After consulting the development team, I would like to inform you that at present the DoubleTextBox does not support format strings to format the value that it displays. NumberDecimalDigits is the only property available that handles this to a certain extent. However, we have considered this as a feature request, and will try our best to incorporate this feature in our future releases. We appreciate your feedback, and thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

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

;