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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top