Execute and update the expression from one column to another column in data table C#

  • Thread starter Thread starter Arivazhagan K
  • Start date Start date
A

Arivazhagan K

Guest
hi,

I have to update one column based on the expression on the other column in the data table.

Col1 Col2 Col3 ColExp CalcCol

1 0 1 Col1>Col2

1 1 1 Col1+Col2

1 2 1 Col1+Col2 +Col3

Actually, I have to read the each row in the above data table and update the value on the calcCol column based on the ColExp column value. So finally my data table would be like this below table.



Col1 Col2 Col3 ColExp CalcCol


1 0 1 Col1>Col2 True

1 1 1 Col1+Col2 2

1 2 1 Col1+Col2+Col3 4





Thanks

Arivazhagan K

Continue reading...
 
Back
Top