I have a data table
example:
Code Value Amount
A001 1 10000
A001 1 20000
A002 1 10000
A003 1 10000
A002 1 20000
A003 1 20000
A004 1 20000
A005 1 20000
I need to get distinct values from code column and need to display the rest of two columns also in output as datatable
Code Value Amount
A001 1 10000
A002 1 10000
A003 1 10000
A004 1 20000
A005 1 20000
Hi @ppr,
I tried to understand your xaml and I have got one question: Which part of your assign statement defines the column to search for duplicate or distinct values?
Is it ‘k=d(0)’ in
(From d In dtData
Group d By k=d(0).toString.Trim Into grp=Group
Select grp.First()).CopyToDatatable