I have a datatable which has an amount column & a status column. I want to sum only those rows who have status '1'. How to do this? I am summing the column via datatable Compute method.
dataTable.Compute("sum(amount)", "status = 1")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With