问题描述
我想显示ALL Money字段-右对齐并以逗号分隔.
I want to display ALL Money field - right aligned and comma separated.
例如,如果我在3个屏幕中(在datagrid中)显示10个货币字段,则所有货币字段应右对齐并以逗号分隔.
for example, If I display 10 money fields in 3 screens ( in datagrid), all the money fields should be right aligned and comma separated.
目前,以下步骤有效-
(1)在实体"中将数据类型从十进制更改为金钱.
(1) Change the datatype from decimal to money in "entity".
(2)使用"Money Viewer"显示数据控制.
(2) Display data using "Money Viewer" control.
(3)设置文本对齐". "Money Viewer"的属性控制权利"在每个"屏幕中的每个钱"字段中.
(3) Set the "Text alignment" property of the "Money Viewer" control to "Right" for EACH Money field in EACH screen.
每当我创建新的实体/屏幕时,我都希望避免重复上述步骤(至少是第3步).
I want to avoid doing the above steps (atleast step3) repeatedly, whenever I create a new entity/screen.
主题可能吗?
推荐答案
我尝试搜索很多有关的信息,但是我找不到合适的方法.
I try search much information about, but I can't find appropriate method for this.
我希望有人老板能为您提供更多积极的解决方案.
I hope someone boss could give more positive solutions for you.
致谢
这篇关于如何在应用程序中正确对齐和格式化(使用逗号)所有Money类型(业务类型)数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!