Hi,
I have a Data table that is having empty value and integer value. I want to sum the column but as i have empty values also in the column it is giving me error
DataTable
Below is my query
dt.AsEnumerable.Sum(Function(a)Convert.ToDouble(a(“Amount”).ToString))
it is working fine when we dont have null value, could you please suggest how to handle null value in the query
Thank you