By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,120 Members | 1,786 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,120 IT Pros & Developers. It's quick & easy.

Reading data from a dataset

P: n/a
Simple Googling only results filling controls with information -- not
this. The scenario is, that I have a whole table in my dataset. I know
the ID (autoincrementing integer field) of the row to grab data from in
the dataset. How do I get all the data of that row in the dataset?
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
dataSet.Tables[0].Select("ID = " + ID.ToString())[0].ItemArray;

will give you an array of the values in the row assuming the dataset is
called dataSet, its the first table, and the id number is in a variable
called ID.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"sweetiecakes" wrote:
Simple Googling only results filling controls with information -- not
this. The scenario is, that I have a whole table in my dataset. I know
the ID (autoincrementing integer field) of the row to grab data from in
the dataset. How do I get all the data of that row in the dataset?
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.