var groupByResult = dataTable.Rows.Cast().GroupBy(dr => dr["name"].ToString()); foreach (var rows in groupByResult) { if (rows.Count() > 1) { //以name为筛选条件的数据存在多条 … } }