Best way to remove duplicate entries from a data table

Ananth picture Ananth · Dec 11, 2010 · Viewed 161.8k times · Source

What is the best way to remove duplicate entries from a Data Table?

Answer

jai picture jai · Feb 1, 2013

Do dtEmp on your current working DataTable:

DataTable distinctTable = dtEmp.DefaultView.ToTable( /*distinct*/ true);

It's nice.