devexpress 中Grid 的使用:为零不显示

如果要让为0的列不显示:

  this.gridColumn_FAmount.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
  this.gridColumn_FAmount.DisplayFormat.FormatString = "{0:#.00;-#.00;''}";

 

这样就可以了。

posted @ 2013-08-28 18:36  xiajing12345  阅读(520)  评论(0)    收藏  举报