vpetkovic
7/9/2019 - 12:08 PM

[DataTable] Iterating thru each cells

int cols = dt.Columns.Count;

foreach (DataRow dr in dt.Rows)
{
    // go through each column in the row
    for (int i = 0; i < numberOfColumns; i++)
    {
        // access cell as set or get
        // dr[i] = "something";
        // string something = Convert.ToString(dr[i]);
    }
}