Sum selected rows in datatable only?
I have a datatable which has an amount column & a status column. I want to sum only those rows who h开发者_高级运维ave status '1'. How to do this? I am summing the column via datatable Compute method.
dataTable.Compute("sum(amount)", "status = 1")
精彩评论