int sum = 0; object calc = dt.Compute("SUM(ISNULL(Amount, 0))", "Section>0"); bool converted = Integer.TryParse(calc, sum); if (!converted) // some message; else //work normally
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)