Getting only distinct values from Datatable.

vishalneeraj-24503
Posted by vishalneeraj-24503 under ADO.NET category on | Points: 40 | Views : 1615
Assume that, we have a Datatable which is filled with Data:-
var distinct_values = dt_project_details.AsEnumerable().Distinct(DataRowComparer.Default);
DataTable dt_project = distinct_values.CopyToDataTable();

Comments or Responses

Login to post response