Question Select Distinct record from datatable

prasad kulkarni

Well-known member
Joined
Sep 7, 2009
Messages
62
Programming Experience
1-3
hello,

In my Data table there are 10 records , 5 records are duplicate (repeat),
I want to select distinct record from data table , condition on data table
to select distinct record . so in my data table only 5 record are there.

if any know, reply me soon
 
There is no inbuilt way to get distinct records from a DataTable in .NET 2.0 other than the brute force approach of looping through them and testing each one. In .NET 3.5 you can use LINQ to DataSet to get distinct rows with a single LINQ query.
 
Back
Top