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 column issue

Thread ID:

Created:

Updated:

Platform:

Replies:

47857 Aug 14,2006 03:07 PM Aug 16,2006 07:47 AM Windows Forms 2
loading
Tags: GridControl
Rich
Asked On August 14, 2006 03:07 PM

I have some columns for displaying currency. Some are editable, some are not. The users want decimal places to 5 places but beyond the first 2 places they only want to see significant places.

For example,
2 should show as 2.00
2.5 should show as 2.50
2.55 should show as 2.55
2.55100 instead should show as 2.551

Can I achieve this combining a currency column with a mask?



Administrator [Syncfusion]
Replied On August 15, 2006 08:27 PM

I do not know how you can do this with a CurrencyEdit cell. But it is simple to do with a standard TextBox cell with a numerical CellValueType and a properly set Format string.

this.gridControl1[4,4].CellValueType = typeof(decimal);
this.gridControl1[4,4].Format = "$0.00###";

Administrator [Syncfusion]
Replied On August 16, 2006 07:47 AM

Clay,

Thanks, I''d stumbled on this approach yesterday, I appreciate your response though!


>I do not know how you can do this with a CurrencyEdit cell. But it is simple to do with a standard TextBox cell with a numerical CellValueType and a properly set Format string.

this.gridControl1[4,4].CellValueType = typeof(decimal);
this.gridControl1[4,4].Format = "$0.00###";

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.

;