Clicking on toolstrip from dirty Ultrawingrid cell causes cell to not save to BBS


Clicking on toolstrip from dirty Ultrawingrid cell causes cell to not...
Author
Message
Charles R Hankey
Charles R Hankey
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Forum Members
Posts: 524, Visits: 30K
I have an ultrawingrid in a groupbox.  If I am in a dirty cell, then click save, the changes to the current dirty cell are not saved.  As best I can tell this is because the buttons on the toolstrip do not actually get focus, so the lostfocus of the cell, grid, groupbox do not fire.

If I just put a button on the form and put Me.Save() in the click all is well and the dirty cell saves as shown.

So, I found the itemclicked event of the toolstrip and I can determine which button was clicked but setting focus to that button doesn't seem to be an option. 

Is there an elegant way to fire a focus() if the choice is Save so that the cell will save properly?  or should I just put my own save button over the save button on the toolbar (seems to come as a set with Undo) and then handle the enabling etc myself. ?

TIA

Charles
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search