数据列上的格式化文本 [英] Formatted text on data column
本文介绍了数据列上的格式化文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个DataGridView,其中包含用于插入发票明细的字段.
列之一是服务的价格.此价格必须具有格式,例如"1.940.00"或"19.70".
我无法为此列设置格式. :(
有人可以帮我吗?
提前致谢! :)
Hi all,
I have a DataGridView that contains fields to insert details of a invoice.
One of the columns is the price for a service. This price must have a format, like ''1.940.00'' or ''19.70''.
I can''t set a format for this column. :(
Could someone help me?
Thanks in advance! :)
推荐答案
的U只需更改列价格的数据类型为数字(18,2)
它会显示在小数点后2位.
of U just need to change data type of column price as numeric (18,2)
it will be shown upto 2 decimal place.
这篇关于数据列上的格式化文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文