Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Removing duplicate records in a datatable

$
0
0

Using c#

I have a windows form with a datagridview that is bound to a datatable.

This table contains duplicate records I would like to identify  one of the duplicate records with a check in a checkbox column on the datatgridview - then delete the rows with a check in the checkbox, the end result should be a datatable with no duplicates in.

Can anyone suggest a snippet or a way to identify the duplicates and put the check in.

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>