Not able to select the first element

Hi @Ritika_Singh

Check with the below expression!

** dt.AsEnumerable().GroupBy(Function(i) i.Field(Of String)(“Columnwithduplicatevalues”)).Select(Function(g) g.First).CopyToDataTable**

Regards

1 Like