我在一个WinForms应用程序使用的Infragistics的UltraGrid。结果 哪个事件被在Infragistics的的UltraGrid复选框的“校验变化”升高?

有帮助吗?

解决方案

复选框的更新后事件是你要使用什么。

如果你不能够触发它,不过,你可以添加以下以及:

Private Sub YourGridcontrol_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles YourGridcontrol.MouseDown
    YourGridcontrol.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode)
End Sub

Private Sub YourGridcontrol_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles YourGridcontrol.MouseUp
    YourGridcontrol.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.ExitEditMode)
End Sub

默认情况下,只需切换复选框似乎没有触发更新。通过使其进入/退出编辑模式,更新后应该工作,只要你想。

更新:或者,像文森特建议,在做的performAction上CellChange事件应该工作了。要点是相同的。

其他提示

使用CellChange事件提高UltraGrid.PerformAction(UltraGridAction.ExitEditMode)事件。这将触发事件AfterCellUpdate

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top