title: How to calculate Total for particular column value?
body: <p>I have table like below:</p>
  
  <pre><code>col1     col2
   1         20 
  
   2         40
  
   3         60
  </code></pre>
  
  <p>I want to output table like the following one :</p>
  
  <pre><code>col1     col2
   1         20 
  
   2         40
  
   3         60
  
  total    120
  </code></pre>
  
  <p>I am using the following code but it doesn't work.</p>
  
  <pre><code> object total = dtprofit.Compute("Sum(col2)", string.Empty);
  </code></pre>
  
  <p>Thanks in advance.</p>