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

Display Currency value with format intact

Thread ID:





56606 Feb 16,2007 11:19 PM UTC Feb 17,2007 10:25 AM UTC WinForms 1
Tags: XlsIO
Navaneeth Rajkumar
Asked On February 16, 2007 11:19 PM UTC

I have a negative $ amount that I want to export to Excel file.. In what format should I write for the value to be displayed as ($100) in red? should I use the value property or test property?


Melba Winshia [Syncfusion]
Replied On February 17, 2007 10:25 AM UTC

Hi Jack,

You can set number format as "[Red]$#,##0" to display the value as ($100) in red.


//Inserting data into the first cell of the first worksheet.

//Applying Number Format
sheet.Range["A1"].NumberFormat ="[Red]$#,##0";

Here is the sample for your reference:


Please take a look at the sample above and let me know if you have any other questions.



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

or the page will be automatically redirected to 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