Search This Blog

Thursday, December 20, 2012

Loop all rows DataTable C#

C# > Data > DataTable > Loop all rows

foreach (DataRow row in DataTable1.Rows)
{
     m_v = row["ColName"].ToString();
}