創建一個全局變量
Public double Sumdb;
private void DataGrid
{
ListItemType lit=e
if(lit==ListItemType
{
TableCell tc
TableCell tc
TableCell tc
TableCell tc
Label L_xj=new Label();
L_xj
L_xj
L_xj
tc
Label L_SumData=new Label();
L_SumData
L_SumData
L_SumData
tc
Label L_zj=new Label();
L_zj
L_zj
L_zj
tc
Label L_SumPage = new Label();
L_SumPage
L_SumPage
L_SumPage
tc
}
}
private void DataGrid
{
if(e
{
if( Convert
{
dataSum += Convert
}
}
}
//M_sum為合計的字段名
From:http://tw.wingwit.com/Article/program/net/201311/12824.html