var re = from t in datatable group t by new {t.a, t.b, t.c, t.d} into g select new {g.key, e=g.Sum(k => k.a)};