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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Currency Format

Thread ID:

Created:

Updated:

Platform:

Replies:

67763 Aug 29,2007 05:33 PM UTC Aug 30,2007 01:23 AM UTC WinForms 1
loading
Tags: GridControl
Sathish Chandran
Asked On August 29, 2007 05:33 PM UTC

Hi,

At the time of initialization, we are setting the column type like below,
--------------------------------------------------------------------
// Set the column types
GridStyleInfo colStyleInfo = ColStyles[colIndex];

if (colType.Equals(typeof(double).ToString()))
{
colStyleInfo.HorizontalAlignment = GridHorizontalAlignment.Right;
colStyleInfo.CellValueType = typeof(double);
colStyleInfo.Format = "#,##0.00";
}
--------------------------------------------------------------------

This allow us not to type negative(-), when we start editing. But after typing a number, it allow us to type negative(-).

Request To Know:
----------------
1. We should have the ability to start with negative(-).
2. Could you please give us a small description about the purpose of "#" in the format.

Please help us out.

Thanks & Regards,
Sathish.

Ajish [Syncfusion]
Replied On August 30, 2007 01:23 AM UTC

Hi Sathish,

Here are the details for your questions.

1. We should have the ability to start with negative(-)

Please refer the following sample for allowing both positive and negative number with the mentioned number format
Sample: http://websamples.syncfusion.com/samples/Grid.Windows/F67763/main.htm

2. Could you please give us a small description about the purpose of "#" in the format.

Please refer to the following link for the details of # formatting
http://idunno.org/archive/2004/14/01/122.aspx

Kindly take a look and let me know if you have any questions.

Regards,
Ajish


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

;