Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEWBIE: How do I get the value of a column in a dataset ? 1

Status
Not open for further replies.

DeanConsulting

Programmer
Jan 11, 2002
131
US
Hello,

I am just now getting around to playing with C# and all the new toys in VS2005.

I would like to know how I can take the value in a column that is in a dataset that I have created from an Access database and place that data into a variable?

I am lost on this. I do not want to bind the column to a control I just want to take the data from the column and put it into a variable.

Thanks in advance,
nb



---------------------------------------
Noble D. Bell
 
string strValue = myDataSet.Tables["TableName"].Rows[0]["columnname"];

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top