jahooper
asked on
UltraWinGrid: AfterRowUpdate event on form close?
I'm using an Infragistics UltraWinGrid control on a VB.NET Windows form. I need to take action when a row is updated, so I'm using the AfterRowUpdate event. It fires correctly when I navigate from row to row in my grid. But when I change a row and then close the form, AfterRowUpdate does NOT fire before the form closes?!
What can I do to detect a row update and take action before the form closes?
What can I do to detect a row update and take action before the form closes?
ASKER
Unfortunately, no... There's a Leave, but I can't get anything to fire when I close the form!
try this
set focus to some other control..
set focus to some other control..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That did it! I should have thought of that, but I'm glad you did...
My form just had the datagrid, so I just added a dummy checkbox... Had to leave it visible for focus to work, so I just set Width = 0...
Me.chkDummy.Focus() fires the AfterRowUpdate event in my UltraWinGrid (assuming a change on a grid row)...
Bingo! Thanks...
My form just had the datagrid, so I just added a dummy checkbox... Had to leave it visible for focus to work, so I just set Width = 0...
Me.chkDummy.Focus() fires the AfterRowUpdate event in my UltraWinGrid (assuming a change on a grid row)...
Bingo! Thanks...
Bob