Solved

Need distinct values from dataset

Posted on 2006-10-31
2
203 Views
Last Modified: 2010-04-16
Hello,

I have a data set that looks like the following

1,2,3,4
1,2,3,5
3,5,7,6
7,2,3,5

I wantt o get the distinct values from the middle 2 columns. So what I would like to see is this

2,3
5,7

It needs to be stored in a datset and then displayed in a datagrid.

Any help please
Thanks
Chuck
0
Comment
Question by:charlesbaldo
2 Comments
 
LVL 8

Accepted Solution

by:
redpipe earned 500 total points
ID: 17845610
This support case from Microsoft should cover your issue with sample sourcecode and description:

HOW TO: Implement a DataSet SELECT DISTINCT Helper Class in Visual C# .NET
http://support.microsoft.com/kb/326176
0
 

Author Comment

by:charlesbaldo
ID: 17850387
Thanks redpipe.

I was hoping to get an answer that said here is the dataset select distinct . However a microsft support answer is pretty difinitive. I have implemented the code.

Thanks again
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question