wpf DevExpress XPF GridControl:编辑值更改后的事件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19377900/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 09:51:46  来源:igfitidea点击:

DevExpress XPF GridControl: event after edit value changed?

c#wpfdatagriddevexpress

提问by user377486

I am using a DevExpress.Xpf.Grid.GridControl, where one of the columns is bound to a property with getter and setter, and is therefore editable.

我正在使用 a DevExpress.Xpf.Grid.GridControl,其中一列绑定到具有 getter 和 setter 的属性,因此是可编辑的。

The class the grid is bound to cannot be modified.

网格绑定的类不能修改。

I'd like to have an event fired when the value of that column is edited, so to trigger some operations. With the WinForms version, there was an event RepositoryItem.EditValueChangedevent. The XPF version of GridControl replaced RepositoryItemwith BaseEditSettings, yet I couldn't find an equivalent to the EditValueChangedevent.

我想在编辑该列的值时触发一个事件,以便触发一些操作。在 WinForms 版本中,有一个事件RepositoryItem.EditValueChanged事件。GridControl 的 XPF 版本替换RepositoryItemBaseEditSettings,但我找不到与该EditValueChanged事件等效的事件。

回答by DmitryG

I believe the TableView.CellValueChangedevent should suits your needs.

我相信TableView.CellValueChanged事件应该适合您的需要。

Related help-article: Obtaining and Setting Cell Values

相关帮助文章:获取和设置单元格值