I have an automation that extract a DataTable from a website and need to write to an Excel file, but i need to write only the unique rows based on a column. Example:
(From d in yourdatatablevar.asenumerable
Group d by k=d(yourcolnameorindex).tostring.trim Into grp=group
Where grp.Count=1
Select r=grp.first()).copytodatatable