.NET的 DataTable中某列求和

public DataTable ReportDetail { get; set; }//定义datatable属性
this.txtTotalPiece.Text = ReportDetail.Compute("sum(Piece)", "TRUE").ToString();//求和
原文地址:https://www.cnblogs.com/wupeihong/p/3782241.html