Retrieving Value from a DataSet

By xerocube | January 29, 2007

In the continued spirit of posting whenever I answer a question of mine, here’s a simple snippet of C# code that retrieves a value directly from a dataset.

myVar = myDataSet.Tables[0].Rows[0][“myColumnName”];

Note that the string name can replace the numeric indexes used to more accurately identify a table.

Topics: Code | No Comments »

Comments

Archives

Blogroll

RockinMedia