GridView字段汇总
来源:互联网 发布:ie浏览器官方下载 mac 编辑:程序博客网 时间:2024/05/20 07:33
设属性
protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView myrows = (DataRowView)e.Row.DataItem;
mysum1 += Convert.ToDouble(myrows[3].ToString());
mysum2 += Convert.ToDouble(myrows[4].ToString());
mysum3 += Convert.ToDouble(myrows[5].ToString());
mysum4 += Convert.ToDouble(myrows[6].ToString());
mysum5 += Convert.ToDouble(myrows[7].ToString());
}
// 合计
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Cells[0].Text = "合计";
e.Row.Cells[4].Text = mysum1.ToString();
e.Row.Cells[5].Text = mysum2.ToString();
e.Row.Cells[6].Text = mysum3.ToString("2f");
e.Row.Cells[7].Text = mysum4.ToString();
e.Row.Cells[8].Text = mysum5.ToString();
}
}
- GridView字段汇总
- Gridview 字段过长
- gridview 过长字段显示...
- GridView截取字段!
- GridView中的主键字段
- Gridview 字段值传递
- GridView字段排序
- C# Gridview 字段格式
- GridView限制字段类型
- GridView字段选择器
- GridView 操作汇总
- GridView中页脚汇总显示
- C# GridView 操作汇总
- GridView功能汇总
- GridView控件的汇总
- GridView 操作汇总
- Gridview动态汇总
- mysql字段汇总
- c# 多线程和异步委托实现进度条
- js中escape,encodeURI,encodeURIComponent三个函数的区别
- java调用存储过程的三种方式(包含通过hibernate调用)
- NTDLL.DLL): 0xC0000005: Access Violation-解决方法
- ext4分区中恢复被删除的文件
- GridView字段汇总
- Biorhythms---查询周期数据
- asp include
- 关于stdafx.h头文件
- 发布MFC ActiveX控件并实现自动更新
- mysql 最常用的有关时间的函数
- 【转】postmark安装与使用
- LocalAlloc,VirtualAlloc,malloc,new的异同
- GridView最简单的分页