all groups > c# > april 2008 >
You're in the

c#

group:

Reading data from a dataset


RE: Reading data from a dataset Ciaran O''Donnell
4/24/2008 9:26:04 AM
c#:
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


[quoted text, click to view]
Reading data from a dataset sweetiecakes
4/24/2008 7:10:17 PM
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
AddThis Social Bookmark Button