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.

Currency Format

Thread ID:

Created:

Updated:

Platform:

Replies:

67762 Aug 29,2007 01:30 PM Aug 30,2007 08:59 PM Windows Forms 1
loading
Tags: GridControl
Sathish Chandran
Asked On August 29, 2007 01:30 PM

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.


J.Nagarajan [Syncfusion]
Replied On August 30, 2007 08:59 PM

Hi Sathish,

Thanks for your continued interest in Syncfusion product.

1. Yes, You can able to type negative value at the starting position.
I have attached the sample that demonstrates this completely. It is for allowing both positive and negative number with the mentioned number format
http://websamples.syncfusion.com/samples/Grid.Windows/F67762/main.htm

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

Please let me know if you have any questions.

Regards,
Nagaraj

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.

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.

;