开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜