I'm trying to add expression,which changes boolean value of current column to string value, for DataColumn:
col = new DataColumn("isDirectionIn", typeof(string),
"IIF(isDirectionIn = true, 'in', 'out')");
But I always get an ArgumentException: Cannot set Expression property due to circular reference in the expression.
What should I do to avoid this exception? Thank in advance.