I need to get only the unique rows from a data table based on values from a single column.
However, I do not just want the single iteration and the other duplicates stripped out.
I require ALL rows which are duplicates to be removed and for the data table to only include rows which are completely unique.
From row In dt.AsEnumerable()
Group row By key = row.Field(Of String)(“Name”) Into grp = Group Where
grp.Count() = 1
From r In grp
Select r).CopyToDataTable()