|
-
Aug 10th, 2007, 12:54 AM
#1
Thread Starter
Lively Member
How to get Distinct rows from dataset
Hi
i am having a dataset with a Table which contains repeated values in rows.
i need to get Distinct field value
like
my DS contains 5 records
with
FileLocation :C:\\test
i should get only one record with FileLocation :C:\\test
thanks
Vinay Kumar
-
Aug 10th, 2007, 04:22 AM
#2
Re: How to get Distinct rows from dataset
If you want distinct rows then you need to do that with your SQL code when you retrieve the data in the first place. Once the data is in a DataTable it's too late. There is no inbuilt way to filter out duplicate rows in a DataTable, so you'd have to write code to loop and test.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|