Devexpress 分组自定义分组合计栏公式
来源:互联网 发布:mac怎么打出顿号 编辑:程序博客网 时间:2024/04/30 15:17
系统:windows 7
软件:VS2015
语言:C# WINFORM
设计:DEVEXPRESS GRIDCONTROL
结论:根据设计软件自定义分组 自定义分组合计栏计算公式 非传统的SUM等
事件:bandedGridView1_CustomDrawRowFooterCell
方法:
private void bandedGridView1_CustomDrawRowFooterCell ( object sender ,FooterCellCustomDrawEventArgs e ) { //this.AN017:GridView中的列 AN006、 U1均是 if ( e.Column == this.AN017 ) { decimal d1 = this.bandedGridView1.GetRowFooterCellText( e.RowHandle ,this.AN006 ) == "" ? 0 : Convert.ToDecimal( this.bandedGridView1.GetRowFooterCellText( e.RowHandle ,this.AN006 ) ); decimal d2 = this.bandedGridView1.GetRowFooterCellText( e.RowHandle ,this.U1 ) == "" ? 0 : Convert.ToDecimal( this.bandedGridView1.GetRowFooterCellText( e.RowHandle ,this.U1 ) ); decimal d3 = d1 == 0 ? 0 : Math.Round( d2 / d1 ,2 ); e.Info.DisplayText = d3.ToString( ); } }效果:
转载地址:http://blog.csdn.net/kamboo/article/details/6790846
0 0
- Devexpress 分组自定义分组合计栏公式
- devExpress 分组控件 自定义外观
- DEVEXPRESS GridControl自定义分组组名
- DevExpress.XtraGrid 分组
- DevExpress SpreadsheetControl 分组
- Sql分组合计小计查询
- ireport 序号 合计,分组序号
- Devexpress GridView 列分组显示
- 报表演变历史-分组报表-小计合计
- ReportViewer教程(10)-给报表分组合计
- 分组
- 分组
- 分组.
- 分组
- 分组
- 分组
- 分组
- 分组
- Flex表格显示图片
- 第8周项目3-顺序串算法
- WCF地址常用传输协议总结
- 第八周项目3-顺序串算法
- Linux USB 驱动开发(五)—— USB驱动程序开发过程简单总结
- Devexpress 分组自定义分组合计栏公式
- git 命令
- React中事件传参的写法
- dll 导出函数名的那些事
- WebRTC视频Android客户端的见解
- Activity四种启动模式
- 第8周项目5-计数的模式匹配
- Intellij IDEA 自定义 getter and setter
- 机器学习之单变量线性回归(Linear Regression with One Variable)