WPF Datagrid Row Editing “ENDED” event

后端 未结 8 2293
轻奢々
轻奢々 2020-12-09 01:48

I know that WPF datagrid has \"RowEditEnding\" event , but I need to fire the event on after the Row has comitted to check if the newly added row is duplicated and merge the

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 02:25

    Maybe you can use the event "CurrentCellChanged". This fires when you start editing a cell too, but maybe you can find a way to not always do everything you want to do in your method.

    I had same problem when i wanted to check if the changes in the datagrid are actually changes to the original values. This event is working for my needs.

    Hope i could tell you something new.

提交回复
热议问题