I have checked the whole site and googled on the net but was unable to find a simple solution to this problem.
I have a datatable which has about 20 columns and 10K
Try this
Let us consider dtInput is your data table with duplicate records.
I have a new DataTable dtFinal in which I want to filter the duplicate rows.
So my code will be something like below.
DataTable dtFinal = dtInput.DefaultView.ToTable(true,
new string[ColumnCount] {"Col1Name","Col2Name","Col3Name",...,"ColnName"});