Solved

vb.net - put dataset records into array

Posted on 2009-04-06
2
544 Views
Last Modified: 2012-05-06
Table has these columns and multipe rows. Name is PK.

Name , Price , number1 , number2 , number 3

What would the vb.net code look like if I wanted to put "unique" values of number1, number2 and number3 into an array where price=2? and then sort this array from smallest to largest. Important thing is to have unique values.

Anyone?
0
Comment
Question by:ralphcarter2008
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 24084533
I think that you should take a look at the transpose-method in the article (transposes means that you put rows into columns ...)

http://www.eggheadcafe.com/tutorials/aspnet/5c5d810e-20e6-4d6c-a0a3-5277ba8de7e7/transpose-a-datatable-in.aspx
0
 
LVL 1

Author Closing Comment

by:ralphcarter2008
ID: 31567352
Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error with a code discussed on this page 5 29
VB.NET 2008 Winforms Signing 13 30
Vb.net threads keep increasing 2 35
VB.NET Textbox input validation 4 37
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 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