Solved

Need distinct values from dataset

Posted on 2006-10-31
2
201 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 5 115
C# DataGridView_RowsAdded event not firing 1 39
Long URL in SMS 6 24
bulid json format 3 19
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now