Pages
Home
React JS
React Native
SQL Server
C#.net
Interview
Videos
Angular
ASP.Net
AJAX
Contact Us
20 June 2014
How to remove duplicate records from datatable in c#
private
DataTable
RemoveDuplicatesRecords(
DataTable
dt)
{
var
UniqueRows = dt.AsEnumerable().Distinct(
DataRowComparer
.Default);
DataTable
dt2 = UniqueRows.CopyToDataTable();
return
dt2;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment