What event occurs when checking a flag change in Infragistics UltraGrid?

I am using Infragistics UltraGrid in a WinForms application.
What event occurs when the “check for change” checkbox in Infragistics UltraGrid?

+4
source share
2 answers

The AfterUpdate event of this flag is what you want to use.

If you cannot start it, try adding this as well:

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 

By default, just toggling this checkbox does not seem to trigger an update. Entering / exiting edit mode, AfterUpdate should work the way you want.

UPDATE: Or, as Vincent suggested, performing PerformAction on a CellChange event should also work. The essence is the same.

+2
source

Use the CellChange event to raise the UltraGrid.PerformAction(UltraGridAction.ExitEditMode) event. This will trigger the AfterCellUpdate event.

+5
source

All Articles