Eliminate Duplicate Rows In A DataTable In C#
Assuming you have a datatable that has merged contents from different datatables and you want to eliminate the datatable with distinct rows, you can use the statement below.
Cheers!
dt.DefaultView.ToTable(true, new string[] { "id", "name" });
Comments
Post a Comment