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

Currency column issue

Thread ID:

Created:

Updated:

Platform:

Replies:

47857 Aug 14,2006 07:07 PM UTC Aug 16,2006 11:47 AM UTC WinForms 2
loading
Tags: GridControl
Rich
Asked On August 14, 2006 07:07 PM UTC

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 16, 2006 12:27 AM UTC

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 11:47 AM UTC

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.

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

;