// voor
double d1 = 0;
foreach (DataRow dr in billingEngine.LIGNES.Select("sel=1"))
    d1 += Convert.ToDouble(dr["q"]);
// na
double d1 = billingEngine.LignesVRecords.Where(l => l.SEL).Sum(l => l.Q);