I’d love to know why this code puts the value 5 in the columns cells
For Each row As DataGridViewRow In Me.datagridADRORD.Rows
row.Cells("Historical Diff").Value = 5
Next
But this code doesn’t work, ie the cell is left blank. There are values in the formulas cells so there should be a value to put in the calculated column
For Each row As DataGridViewRow In Me.datagridADRORD.Rows
row.Cells("Historical Diff").Value = row.Cells("ADR Price").Value - row.Cells("ORD Price").Value
Next
Please try Cell index, instead of Cell Name.
//1 is cell index