Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to remove duplicate entries from a data table

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

like image 858
Ananth Avatar asked Dec 11 '10 06:12

Ananth


1 Answers

Do dtEmp on your current working DataTable:

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

It's nice.

like image 195
jai Avatar answered Sep 23 '22 04:09

jai