c# - update DataGridView column value - Stack Overflow

PHOTO EMBED

Wed Sep 28 2022 15:03:20 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #cs

 //Loop over rows

 for (int i = 0; i < datagridview.Rows.Count; i++)
 {
    //Use when column names known
    datagridview.Rows[i].Cells["columnName"].Value  = value;
    //Use when column index known
    datagridview.Rows[i].Cells[1].Value  = value;   
 }
content_copyCOPY

https://stackoverflow.com/questions/41299873/update-datagridview-column-value