zoukankan      html  css  js  c++  java
  • GridControl页脚显示列的汇总数据

    关键属性:
    gridView4.OptionsView.ShowFooter = true;//启用显示页脚 //索引为1的列 gridView4.Columns[1].SummaryItem.DisplayFormat = "{0:0.##}"; gridView4.Columns[1].SummaryItem.FieldName = "TotalMoney"; gridView4.Columns[1].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;//求和 //索引为2的列 gridView4.Columns[2].SummaryItem.DisplayFormat = "{0:0.##}"; gridView4.Columns[2].SummaryItem.FieldName = "PayTotalMoney"; gridView4.Columns[2].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;//求和 //索引为3的列 gridView4.Columns[3].SummaryItem.DisplayFormat = "{0:0.##}"; gridView4.Columns[3].SummaryItem.FieldName = "UnPayMoney"; gridView4.Columns[3].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;//求和 gridView4.CustomDrawFooterCell += new FooterCellCustomDrawEventHandler(this.gridView4_CustomDrawFooterCell);//设置一下对齐方式,通过GridView的CustomDrawFooterCell 事件

    给页脚加数据汇总

  • 相关阅读:
    BZOJ3403: [Usaco2009 Open]Cow Line 直线上的牛
    lintcode入门篇三
    lintcode入门篇二
    lintcode入门篇一
    matplotlib
    Pandas
    Numpy
    缓存
    Django性能优化的几种方法
    python总结十一
  • 原文地址:https://www.cnblogs.com/RCJL/p/13383592.html
Copyright © 2011-2022 走看看