calculate the column total

  • Thread starter Thread starter victor
  • Start date Start date
V

victor

hi guys
i want to calculate the total amount for the a column in the datatable. i
wonder if there is a easy to achieve this instead of using a loop to go
through the whole datatable.

cheers
victor
 
DataTable.Compute("SUM(col1)")
See help for DataTable.Compute for further information on expression syntax
 
thank you alex
how about calc the column total for a dataview with rowfilter applied? how
to calc the column now? do we have to go for a loop?
 
Back
Top