if (e.Row.RowType == DataControlRowType.Footer)//判断此行是否是页尾,如果是则开始统计数据
{
e.Row.Cells[6].Text = "总计";
e.Row.Cells[7].Text = ReturnTotal(7).ToString();
e.Row.Cells[0].Text = "金额合计(大写):" + ConvertSum(e.Row.Cells[7].Text);
e.Row.Cells[0].ColumnSpan = 6;//ColumnSpan 属性指跨的列数
for (int i = 1; i < 6; i++)
{
e.Row.Cells[i].Visible = false; //设为隐藏
}
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。