If you want to use Linq, please use sentence similar to this one:
var qry = myTable.AsEnumerable().Sum(a=>a.Field< data_type>("FieldName"));
Note, that you need to replace:
data_type
with proper
data type[
^]
and
FieldName
with proper field name.
By The Way, you need to know that string is immutable. I'd suggest to use
String.Concat[
^] method:
mytable.Compute(string.Concat("Sum(", myColumnName , ")"), ""));
Note: if your column name contains space, i'd suggest to use
[]
around column name to workaround it.