DTwithDuplicates.AsEnumerable().GroupBy(function(x) {x(“Product Name”).ToString, x(“Product ID”).ToString}).Select(function(g) g.CopyToDataTable)
Trying above expression and assigning to variable of <IEnumerable>
But its not working as intended and giving below output: