I have this datatable (RadkyData):
Name EAN PRICE
ITEM1 12345 10
ITEM2 5558 55
ITEM3 12345 44
I need to search rows with duplicate value EAN.? (a list of all EAN that are duplicate) I have this code:
var polozkySum = RadkyData.AsEnumerable()
.Select(r => new
{
c2 = r.Field<string>("EAN")
})
.GroupBy(g => new { g.c2 })
.Select(x => new
{
col2 = x.Key.c2
});
Have you any ideas please?