473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

dataset basic navigation

Hi, Please forgive me for the simplicity of the question, and the
redundancy. I have searched the forum and believe my answer is out
there amongst the multiple dataset question/responses, but I am such
a newbie that I am having trouble putting together the information I
need...Ok, enough, here's what I am trying to do:

I am making a call to a third party API that returns a dataset. I need
find out if there are any rows returned, and if so pull out the data
from a couple of the columns...

More specifically, I get the dataset. Each row contains many columns,
the three I need to get are BuySell, ControlValue, and Price.

Can someone toss out to me the simple code for traversing through the
dataset and pulling out the values from these columns.

Many Thanks -
Jennifer

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 21 '05 #1
1 1164

"jherl" <je***********@aol-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com...
Hi, Please forgive me for the simplicity of the question, and the
redundancy. I have searched the forum and believe my answer is out
there amongst the multiple dataset question/responses, but I am such
a newbie that I am having trouble putting together the information I
need...Ok, enough, here's what I am trying to do:

I am making a call to a third party API that returns a dataset. I need
find out if there are any rows returned, and if so pull out the data
from a couple of the columns...

More specifically, I get the dataset. Each row contains many columns,
the three I need to get are BuySell, ControlValue, and Price.

Can someone toss out to me the simple code for traversing through the
dataset and pulling out the values from these columns.

Many Thanks -
Jennifer

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*


If you have a dataset here is some sample code to get data from it..

Assuming your dataset is named "ds"

'Get the number of Rows in the table
ds.Tables("TABLE_NAME").Rows.Count

'Enumerate through the rows in a data Table
Dim dr as DataRow

For Each dr in ds.Tables("TABLE_NAME").Rows
dr("COLUMN_NAME1 or INDEX").ToString()
dr("COLUMN_NAME2 or INDEX").ToString()
Next
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rob via .NET 247 | last post by:
Ok, I'm new to .NET so I'm afraid I'm doing something stupidhere, but I'm trying to populate a DataSet manually from aDataReader, and its turning out to be ridiculously difficult. Yes, I could use...
2
by: Jason Huang | last post by:
Hi, In the ASP.Net, what's the difference between DataSet and DataView? I what situation will I choose to use the DataSet or DataView? Thanks for help. Jason
2
by: Martin | last post by:
Hi! I'm new to ASP.NET WebApplications and wonder whether I've missed something out when programming it. I'm grateful for any hints to this problem! Thanks very much for your efforts! Martin...
22
by: EMW | last post by:
Hi, I managed to create a SQL server database and a table in it. The table is empty and that brings me to my next chalenge: How can I get the info in the table in the dataset to go in an empty...
4
by: Robert Bravery | last post by:
Hi all, I have now correctly set up my dataset and two grids, so that the parent navigates the child. THe thing is that the child table is actually a lookup type table. It lists billing types for...
4
by: Newbie | last post by:
Could someone answer a vb.net database question? what is a good way to code a form so that a user could navigate through a dataset ie: MoveFirst, MoveNext, MovePrevious, MoveLast, Update and...
13
by: Ranginald | last post by:
I am new to oop so please bear with me: Could someone please explain to me why the "protected void runCategory() method" cannot access the local ddlCategory object that is easily accessed in...
0
by: Amit31 | last post by:
I create the application in VB.Net 2005. In this whole application i used the Binding for Textbox Controls for data storing and fetching from database (SQL Server 2005). I set the buttons on Form to...
0
by: PeterSummer | last post by:
Could someone answer a vb.net database question? what is a good way to code a form so that a user could navigate through a dataset ie: MoveFirst, MoveNext, MovePrevious, MoveLast, Update and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.