Link to home
Start Free TrialLog in
Avatar of Vartana
Vartana

asked on

Sum of Dataset column

I have a data set called MyDataSet
Then i have a datatable called MyDataTable

I want to get the sum of column 3

How would I do this ?


Thank You
ASKER CERTIFIED SOLUTION
Avatar of iboutchkine
iboutchkine

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vartana
Vartana

ASKER

I dont want to filter anything

How can i do it without filtering
put criteria for filter that will match all the records.
FOr example you want to calculate quantity
objSum = myTable.Compute("Sum(Qty)", "Qty>0")
also you can use Nothing for filter
objSum = myTable.Compute("Sum(Qty)", Nothing)