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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can a cell be a formula and currency types simultaneously?

Thread ID:





41257 Feb 26,2006 07:01 AM UTC Feb 28,2006 07:29 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On February 26, 2006 07:01 AM UTC

For my financial app, there are numerous instances of formula cells which have a currency value as their result. I rather like the currency formatting options given by a cell''s CurrencyEditInfo, but this formatting only applies if the cell is a currency cell (to my knowledge). Is there a way to get this automatic currency formatting, but still make it a formula cell so that it knows to calculate its value based on the value of other cells? Many thanks for any help anyone can offer, Taylor

Administrator [Syncfusion]
Replied On February 28, 2006 07:29 AM UTC

Hi Taylor, One way to handle this, is by manually setting the style format depend on the value. The FormatPreview and FormattedText propeties helps us in getting and setting format of the resultant formula value. Here is a Demo Project. Or you can go for the default format of currency cell. By setting the following code this.gridControl1[3,3].CellType = "FormulaCell"; this.gridControl1[3,3].Format = "c"; Best Regards, Madhan.


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

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

Live Chat Icon For mobile
Live Chat Icon