Infragistics UltraGrid 中复选框的选中更改会引发哪个事件?
我在 WinForms 应用程序中使用 Infragistics UltraGrid。
Infragistics UltraGrid 中复选框的“检查更改”会引发哪个事件?
I am using an Infragistics UltraGrid in a WinForms application.
Which event is raised on "check change" of checkbox in Infragistics UltraGrid?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
CellChange
事件引发UltraGrid.PerformAction(UltraGridAction.ExitEditMode)
事件。 这将触发AfterCellUpdate
事件。Use the
CellChange
event to raise theUltraGrid.PerformAction(UltraGridAction.ExitEditMode)
event. This will fire theAfterCellUpdate
event.您需要使用复选框的 AfterUpdate 事件。
不过,如果您无法触发它,请尝试添加以下内容:
默认情况下,仅切换复选框似乎不会触发更新。 通过使其进入/退出编辑模式,AfterUpdate 应该按照您的需要工作。
更新:或者,就像文森特建议的那样,对 CellChange 事件执行 PerformAction 也应该有效。 要点是一样的。
The AfterUpdate event of the checkbox is what you'll want to use.
If you're not able to trigger it, though, try adding this as well:
By default, just toggling the checkbox doesn't seem to trigger an Update. By making it enter/exit edit mode, the AfterUpdate should work as you want.
UPDATE: Or, like Vincent suggested, doing the PerformAction on the CellChange event should work, too. The gist is the same.