DataGridView.CellValueChanged not firing on bound DataGridView

后端 未结 2 1429
暗喜
暗喜 2021-01-21 05:39

When I change a value programatically in a DataTable that my DataGridView is bound to, the appropriate CellValueChanged event is not firing for the DataGridView. I\'m trying to

2条回答
  •  佛祖请我去吃肉
    2021-01-21 06:04

    Changing the cells background color should be done in the RowPrePaint-Event, this will be fired if the row is repainted, after the value change.

提交回复
热议问题