Delete duplicate records from Datatable
Is there any simple way to delete duplicates from a data table (just a single column) ? I've tried various assignments using Distinct as well as scripting C# - was hoping this would work
dtUniqRecords = dt.DefaultView.ToTable(true); Or dt = dt.DefaultView.ToTable(true);
But it still returns the duplicates.
I know there's lengthy ways to do this in WF but I was hoping for something short and sweet...
Thanks,
James
0
-
Great - thanks!
0
Please sign in to leave a comment.
Comments
1 comment