Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.3k

Update Column value of Datatable

May 2 2023 6:15 AM

Hi

  I have below code & i want to Update column value of each row

foreach (DataRow row in dt.Rows)
{
    for (int i = 8; i < dt.Columns.Count - 2; i++)
    {
        if (dt.Columns[i].ToString().ToUpper().Trim() == "D")
        {
            row.SetField = "Done";
        }

    }
}

Thanks


Answers (1)