If you are going to make a point of asking a question in the csharp
newsgroup, you should expect to get your answer in C#.
DataTable tbl = myDataSet.Tables[0];
for (int i = 0; i < tbl.Rows.Count; i++)
{
DataRow myRow = tbl.Rows[i];
string MyValue = myRow["datafieldname"];
}
This can be written more efficiently... I drew out the data types for
clarity.
--- N
"edpdc" <ed***@yahoo.com> wrote in message
news:61*************************@posting.google.co m...
VB .NET
I would like to know how to loop through each row in a data set and
get a value from a colum in the data set. My data set has multiple
columns. I know I have to use the datarow class but I'm not sure how
to do this. I would like to use a for each loop.
Any help would be appreciated.