DataTable table;
table = ds.Tables["Ordertable"]
Double dblTotalCost = Convert.ToDouble(table.Compute(“SUM(SalesPriceMoney)”, “”));
if (dblTotalCost > 0)
lblTotalCost.Text = dblTotalCost.ToString(“C”);
else
lblTotalCost.Text = “$0.00″;
Home > Uncategorized > sum of a column in datatable c#
sum of a column in datatable c#
Leave a Reply
Trackbacks:0
- Listed below are links to weblogs that reference
- sum of a column in datatable c# from extremeweblog.com