I have an expression as “((ID + DepartmentID)*ID) as ExpressionColumn” where ID,department are the columns of a datatable. How to execute the expression for each datarow and add new column to the datatable as “ExpressionColumn”. Since the expression can vary based on User’s selection, Kindly help me with a generic code to calculate the expression for each row/column and add new column to the datatable.
I have an expression as ((ID + DepartmentID)*ID) as ExpressionColumn where ID,department are the
Share
Have a look at this example
Use the data visualizer before and after you add the last column (the calculated column).
You will notice by adding the calculated column, the calculations are done for you.