Hello,
you can only compare what is comparable. In this instance it should be 2 integers
The Value property of a Cell is an object and you need to convert it to an integer.
Convert.ToInt32(row.Cells["diff"].Value)>1
If you are unsure what the content of the type cell is you can find it looking at the property
ValueType
See here for details:
DataGridViewCell Class (System.Windows.Forms)[
^]
Valery