Link to home
Start Free TrialLog in
Avatar of jahooper
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?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

I don't have that control, but does it have something like Finish, Complete, EndEdit, Close or something to that affect that will finish the edit before the form is closed?

Bob
Avatar of jahooper
jahooper

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..

ASKER CERTIFIED SOLUTION
Avatar of RJeyaPrakash
RJeyaPrakash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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...