Trying to select distinct rows from a dt, and put the results back in the same dt. I thought this could be done in one statement. Here’s what I’m trying:
dt = (DataTable)((from row in dt.AsEnumerable() select row.Field<string>("VNDR_ID")).Distinct().ToList());
How can I achieve this? Thanks.
1 Answer