因为数字的类型是decimal 默认 打开表前边带了人民币符号

 

 修改方式 可以进设计页 也可以命令

 

 

 

 程序改类似下边

// Formats the OrderDate field's values using a long date pattern.
fieldOrderDate.ValueFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
fieldOrderDate.ValueFormat.FormatString = "D";

// Formats the ExtendedPrice field's values as integer currency values.
fieldExtendedPrice.CellFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
fieldExtendedPrice.CellFormat.FormatString = "c0";

https://docs.devexpress.com/WindowsForms/1813/controls-and-libraries/pivot-grid/data-shaping/data-formatting

 

posted on 2023-03-14 11:38  小石头的一天  阅读(86)  评论(0编辑  收藏  举报