The following linq
var subjectMarks = (from DataRow row in objDatatable.Rows
select Convert.ToDecimal(row["EXM_MARKS"])).Sum();
throws an exception since some row["EXM_MARKS"] has non numeric values like AB etc.
How can I get the sum of only numeric ones out of them?