Hi everyone, i got struck in Writing LINQ query to segregate data.
I have a datatable in that it’s having duplicate data. I need to segregate them each unique data as one list of data then i need use it another place.
I tried some LINQ query but it didn’t worked
DT.AsEnumerable().Select(Function(row) row.Field(Of Integer)(1)).Distinct().ToList()
Input data:
Output: need in for each loop
Set 1:
1
1
1
Set2 :
2
2
2
Set 3:
3
3
3
Set 4:
4
4
4
Set 5:
5
5
5
5
5
5