ppr
(Peter Preuss)
3
DataTable.Compute(… will return a result of DataType: Object
One of several object is to convert it into a Double as you had done
The Compute method is short and powerfull, but also very sensitive, when the values are not within the expectations (blanks, other formarts)
So a more control we can achieve e.g. with LINQ
Convert.ToBoolean, CX methods. But more important which String value should be converted?