Hi all, I have a linq command that removes duplicate values, this works so far. What is new is that I need a comma after the OrderID, how can I achieve this?
That means if the input OrderID is “0815” I want to have “0815,” in the output.
(From d In DT_Input.AsEnumerable
Group d By k=String.Join(“,”,d(“Order_Number”).toString.Trim) Into grp = Group
Let ra = New Object(){grp.First()(1)}
Select r = DT_Clone.Rows.Add(ra)).CopyToDataTable