How to calculate the expression of a datatable
<p>Current Code:                                                                   </p>

<pre><code>foreach (Expressions e in expressionObj)
{
   if ((e.Expression != null) &amp;&amp; (e.ColumnName != null))
   {
      newtable1.Columns.Add(new DataColumn(e.ColumnName, typeof(decimal), e.Expression));
   }   
} 
</code></pre>

<p>I have an expression as ID+ID which is to be added as new column in the datatable as SUM-ID where ID=2, but the result got is 22 instead of 4.</p>
