开发者

WPF: What could cause a DataGrid to call IEditableObject.BeginEdit/EndEdit but never IEditableObject.CancelEdit

开发者 https://www.devze.com 2023-01-08 01:32 出处:网络
When I start editing my grid IEditableObject.BeginEdit. And if I leave then IEditableObject.EndEdit is called. However, if I press Escape then IEditableObject.CancelEdit doesn\'t get called.开发者_Sta

When I start editing my grid IEditableObject.BeginEdit. And if I leave then IEditableObject.EndEdit is called. However, if I press Escape then IEditableObject.CancelEdit doesn't get called.开发者_StackOverflow中文版

This was working before, so I'm not sure what I did to break it. Or even what can break it.


If you have a template column and one if the bindings has UpdateSourceTrigger=PropertyChanged then you break the ability to cancel edits.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号