DevExpress XtraReport货币千位分隔符

时间:2014-11-02 01:23:49

标签: winforms devexpress xtrareport

我的XtraReport带有XtraLabel详细信息带用于显示货币,例如:我有2000000并希望将其显示为2.000.000,我该怎么办?

1 个答案:

答案 0 :(得分:2)

您可以通过设置'Text`数据绑定的FormatString属性来完成此操作。

xrLabel.DataBindings["Text"].FormatString = "{0:C}";

您可以设置引用Standard Numeric Format StringsCustom Numeric Format Strings来指定要应用的格式字符串。

<强>参考文献:
Formatting numeric values as Currency for an XrLabel
XRLabel - Setting FormatString during Report Generation