Yes, but not through LINQ:
DataColumn col3 = new DataColumn(); col3.DataType = typeof(decimal); // or something suitable col3.ColumnName = "sum"; col3.Expression = "col1 + col2"; dt1.Columns.Add(col3);
You can also use the LINQ approach to create a projection, but this does not change the table (therefore, assigning dt1 is an error). Technically, you can write an expression parser to write .Expression for you, but I donβt see it to be a good investment of time.
source share