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.

Can a cell be a formula and currency types simultaneously?

Thread ID:

Created:

Updated:

Platform:

Replies:

41257 Feb 26,2006 02:01 AM Feb 28,2006 02:29 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 26, 2006 02:01 AM

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 02:29 AM

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.

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.

;