Wednesday, February 8, 2012

Use of Foreach loop with Dataset in asp.net

DataSet ds = new DataSet();
foreach(DataRow dr in ds.Tables[0].Rows)
{
Console.WriteLine(dr["ColName"].ToString());
}

No comments:

Post a Comment