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
|