apparently that record has a null value. database null get converted to a
DBNull.Value
. You need to cast to a nullable decimal and then add it to your variable
var d = (decimal?) dataGridView1.Rows[i].Cells[1];
meters += d.GetValueOrDefault();
if(d.HasValue){
meters += d.Value;
}