因為數(shù)字的類型是decimal 默認(rèn) 打開表前邊帶了人民幣符號

修改方式 可以進(jìn)設(shè)計頁 也可以命令


程序改類似下邊
// 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
技術(shù)交流qq群:143280841
浙公網(wǎng)安備 33010602011771號