public static void AppendSumaryRow(DataTable table)
{
if (table.Rows.Count > 0)
{
DataRow dr = table.NewRow();
for (int i = 0; i < table.Columns.Count; i++)
{
DataColumn column = table.Columns[i];
if (SumaryTypeList.Contains(column.DataType))
{
dr[i] = table.Compute(String.Format("Sum({0})", column.ColumnName), "");
}
}
table.Rows.Add(dr);
}
}