if (e.Row.RowType == DataControlRowType.Footer)//判斷此行是否是頁尾,如果是則開始統(tǒng)計(jì)數(shù)據(jù)
{
e.Row.Cells[6].Text = "總計(jì)";
e.Row.Cells[7].Text = ReturnTotal(7).ToString();
e.Row.Cells[0].Text = "金額合計(jì)(大寫):" + ConvertSum(e.Row.Cells[7].Text);
e.Row.Cells[0].ColumnSpan = 6;//ColumnSpan 屬性指跨的列數(shù)
for (int i = 1; i < 6; i++)
{
e.Row.Cells[i].Visible = false; //設(shè)為隱藏
}
}
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。