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}"); }
DevExpress gridControl 设置分组的更多相关文章
- Devexpress gridcontrol设置列样式
<dxg:GridControl.Columns><dxg:GridColumn Header="排名" FieldName="UserRank&quo ...
- DEVexpress GridControl 属性设置
1. 如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 2. 如何新增一条记录 (1).gridView.Ad ...
- devexpress表格控件gridcontrol设置隔行变色、焦点行颜色、设置(改变)显示值、固定列不移动(附源码)
介绍一些常用的gridcontrol设置. 1.设置隔行变色.首先设置显示隔行变色,步骤:OptionsView-->EnableAppearanceEvenRow-->true和Opti ...
- DevExpress GridControl 使用方法技巧 总结 收录整理
一.如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 二.如何新增一条记录 ().gridView.AddNe ...
- DevExpress GridControl使用(转)
DevExpress GridControl使用 (一)原汁原味的表格展示 Dev控件中的表格控件GridControl控件非常强大.不过,一些细枝末节的地方有时候用起来不好找挺讨厌的.使用过程中,多 ...
- Devexpress GridControl使用
//不显示内置的导航条. gc1.UseEmbeddedNavigator = false; //不显示分组的面板 gv1.Opti ...
- C# DevExpress GridControl使用方法
一.如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 二.如何新增一条记录 ().gridView.AddNe ...
- [转载]DevExpress GridControl 使用方法技巧 总结 收录整理
最近开始用DevExpress组件,发现很好的经验总结博客,在这里转载分享 原作者:https://www.cnblogs.com/wordgao/p/4517011.html 一.如何解决单击记录整 ...
- DevExpress GridControl使用方法
一.如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 二.如何新增一条记录 (1).gridView.AddN ...
随机推荐
- python test
#!/usr/bin/env python #-*- encoding: utf- -*- ''' def foo(name): print name, '去砍柴' foo('yangshanlei: ...
- Android 数据存储五种方式
1.概述 Android提供了5种方式来让用户保存持久化应用程序数据.根据自己的需求来做选择,比如数据是否是应用程序私有的,是否能被其他程序访问,需要多少数据存储空间等,分别是: ① 使用Shared ...
- 在eclipse中用gradle搭建MapReduce项目
我用的系统是ubuntu14.04新建一个Java Project. 这里用的是gradle打包,gradle默认找src/main/java下的类编译.src目录已经有了,手动在src下创建main ...
- 【第1期】腾讯云的1001种玩法征集,Ipad mini和Kindle 等你拿!(文章评审中)
版权声明:本文由阁主的小跟班原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/695994001482226944 来源:腾云 ...
- SSIS-包调用包错误的解决方案
1.错误信息: 无法解密受保护的 XML 节点“ DTS:Password”,错误为 0x8009000B“该项不适于在指定状态下使用.”.可能您无权访问此信息.当发生加密错误时会出现此错误.请确保提 ...
- 20145224&20145238 《信息安全系统设计基础》 第三次实验
20145224&20145238 <信息安全系统设计基础>第三次实验 课程:信息安全系统设计基础 班级:1452 姓名:陈颢文 荆玉茗 学号:20145224 20145238 ...
- Sprint3总结和成员个人总结
Sprint3总结 一.类名:软件工程-第三阶段 二.时间:至12.18 三.选题内容:web版-餐厅到店点餐系统 四.(1)团队博客地址: http://www.cnblogs.com/queenj ...
- poj2965 The Pilots Brothers' refrigerator
题目链接:http://poj.org/problem?id=2965 分析:1.这道题和之前做的poj1753题目差不多,常规思路也差不多,但是除了要输出最少步数外,还要输出路径.做这道题的时候在怎 ...
- Java EE : 二、图解 Cookie(小甜饼)
目录 Java EE : 一.图解Http协议 Java EE : 二.图解 Cookie(小甜饼) Java EE : 三.图解Session(会话) 概述 一.概述 二.详细介绍Cookie 传输 ...
- shell-参数做下标
test.sh #!/bin/bash#用第3个参数作为下标或position,来获取参数param=$(eval echo \$$3)echo "hello, $param"