I am trying to implement:
dtGroupedBy.Compute(\"sum(POWER)\",dvv.RowFilter);
It results of an error:
Invalid usage
You can't use the Sum()
aggregate function on a string field.
There are 2 things you can do
System.Int32
conversion on the data you're passing to the aggregate function.
so you could do the followingdtGroupedBy.Compute("sum(CONVERT(" + POWER + ",'System.Int32'))",dvv.RowFilter);