(From d in Input DT. As Enumerable()
Group d By K1= d(“Cust Name”). Tosting, K2= Tostring() d(“PlanCode”). Tostring() Into grp=Group Lett rw = grp.Asenumerable ().Orderby(Function (x) Cint(x (“FPP”))). First() Select ResDT. Rows. Add (rw)). Copy To DataTable()
(From d in Input DT. As Enumerable()
Group d By K1= d(“Cust Name”).Tosting,K2=d(“PlanCode”).Tostring() Into grp=Group Let rw =grp.Asenumerable ().Orderby(Function (x) Cint(x (“FPP”))).First() Select ResDT. Rows. Add (rw)).CopyToDataTable()