如果要让为0的列不显示:
this.gridColumn_FAmount.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.gridColumn_FAmount.DisplayFormat.FormatString = "{0:#.00;-#.00;''}";
这样就可以了。
如果要让为0的列不显示:
this.gridColumn_FAmount.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.gridColumn_FAmount.DisplayFormat.FormatString = "{0:#.00;-#.00;''}";
这样就可以了。
转载于:https://www.cnblogs.com/xiajing12345/p/3287770.html