title: C# - Most efficient way of changing the value of a cell in each row within a DataGridView
body: <p>I'm looking for some advice on the most efficient way of changing the cell value of each row within a DataGridView.
  I think that there could possibly be different ways of achieving this but I don't want to start coding it without some advice and end up going down the wrong route.</p>
  
  <p>The value would always be in the same column, would it be possible to loop through each row in the DGV using a foreach loop, read the data within the row on the correct column and simply use something like <code>row[columnIndex] = "x value";</code>
  Or would I be better off taking all of the DGV data and putting it into a Datatable, updating the data and then reapplying it to the DataGridView.</p>
  
  <p>Thanks</p>