Wednesday, May 07, 2008

Looping through all rows of the DataTable

Simply write
DataTable dTable = dSet.Tables[0];
foreach (DataRow row in dTable.Rows)
{
myValule = row["ColumnName"].ToString();
}

No comments: