zoukankan      html  css  js  c++  java
  • DevExpress gridControl 设置分组

    有些代码非常有用,但是用的时候就记不清怎么写,所以就在这里打个草稿。

       //设置组汇总
            private void SetSummation()
            {
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "TareWeight", colTareWeight, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "GrossWeight", colGrossWeight, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "MiscDeduction", colMiscDeduction, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "RefGrossWeight", colRefGrossWeight, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "NetWeight", colNetWeight, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "H2O", colH2O, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "H2O2", colH2O2, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "H2OQuantity", colH2OQuantity, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "DryWeight", colDryWeight, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Cu", colCu, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Cu2", colCu2, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Au", colAu, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Au2", colAu2, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "AuQuantity", colAuQuantity, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Ag", colAg, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Ag2", colAg2, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "AgQuantity", colAgQuantity, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Pb", colPb, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Zn", colZn, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Sb", colSb, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Sb2", colSb2, "{0:N3}");
    
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Sb", colSb, "{0:N3}");
                this.gridViewShipment.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "Sb2", colSb2, "{0:N3}");
    
            }
    
  • 相关阅读:
    137. Single Number II (Bit)
    136. Single Number (Bit)
    89. Gray Code (Bit)
    57. Insert Interval (Array; Sort)
    56. Merge Intervals (Array; Sort)
    UNIX 网络编程笔记-CH3:套接字编程简介
    UNIX 网络编程笔记-CH2:TCP、UDP概貌
    TSP-旅行商问题
    Java 集合:迭代器(Iterator, Iterable)
    PAT 1029. Median
  • 原文地址:https://www.cnblogs.com/yuanjiedao/p/4901147.html
Copyright © 2011-2022 走看看