Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I want to distinct rows from datatable with 10M rows.
I have also use
dtUniqRecords = dt.DefaultView.ToTable(true, "ID","Name");


But this method is takes lots of time.

Any other methods to get distinct rows?
Posted
Comments
jaideepsinh 3-Jul-13 9:07am    
Saw you query and on which field you want to distinct.

1 solution

Refer to similar question here :Select Distinct Rows from Data Table[^]

For reference:

DataTable with SelectDistinct in C#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900