Compare old and new value in DataGridView cell

前端 未结 4 775
暗喜
暗喜 2021-01-11 11:18

How to change DataGridView cell ForeColor based on whether new cell value is > or < than current/old cell value? Is there an event which passes the new value before the

4条回答
  •  青春惊慌失措
    2021-01-11 12:04

    You can store the old value of the cell in a variable, to compare and change the ForeColor depending on the result, then delete the old value from the variable.

    Regards.

提交回复
热议问题