And I want to group by Col2 and Col9
And the output should be
(From d In dt.AsEnumerable
Group d By k1=d("Col1").toString.Trim, k2=d("Col2").toString.Trim Into grp=Group
Let ra = New Object(){k1,k2, ? ? ? ? ? }
Select test.Rows.Add(ra)).CopyToDataTable
I ve tried the code above only with k1 and k2… but i need all columns
its depending on how you have decide from which group member to take the value
in case of taking it from first group member we would use for ?
grp.First()(YourColNameOrIndex)