WPF DataGrid has RowEditEnding but no RowEditEnded

后端 未结 5 1171
生来不讨喜
生来不讨喜 2021-02-19 20:04

I\'ve bound an ObservableCollection to a DataGrid. When I change values in the DataGrid, the RowEditEnding event is raised. But the e.Row.Item is the object before editing, so y

5条回答
  •  盖世英雄少女心
    2021-02-19 20:56

    Well, maybe this may help: http://wpf.codeplex.com/Thread/View.aspx?ThreadId=39356

    http://blogs.msdn.com/b/vinsibal/archive/2009/04/14/5-more-random-gotchas-with-the-wpf-datagrid.aspx

    Or this, see point number 5.

    You'll have to tinker with it to get what you want I think, but I hope that helps! Or points you in a good direction.

提交回复
热议问题