I have a cell with a dropdown and when I make a selection then move off of the grid by say, clicking on a button outside of the grid, I get an error because the cell failed to validate the new selection. an error msgbox shows up but when I dismiss it, the msgbox pops up again and there is nothing i can do other than kill the app.
It seems like when I dismiss the msgbox, the app wants to move the focus to the button but the cell fails to validate again and thus pops up the msgbox again and again.
It'd be nice if I could either prevent the focus to be moved away until everything is valid or somehow move the focus back to the grid after the initial error msgbox showing up.
What options are there?
Clicking on a menu item will have no effect on the grid by itself, since a menu does not take focus. So if anything at all is happening there, then it must be either because you are calling UpdateData or ExitEditMode on the grid, or else your "other tools" are taking focus away from the grid.But without knowing exactly what you are doing there, it's hard to judge.
I tried out a simple test with a button on the form. I type a letter into a numeric field and click the button. I get an error, I click OK. Then I click on another button and once again I get an error and click OK. But it works fine for me, I just get the one error message each time.
This is how it happens for me. If I enter something invalid in the grid (say a letter in a numeric column), when I exit the cell, I will get the validation error message. The focus then goes back to the invalid cell after OKing the validation error. If instead of fixing the cell, I then click somewhere outside of the grid (we have a menu bar outside of the grid that lets you bring up other tools, so for example I use that menubar to do something) -- now the grid will go into an infinite loop of validation error messages -- OK the error message, another one comes up, etc.
It's possible that the action that I am taking outside of the grid is causing some type of reaction (event handling) in the grid -- I'm not sure about that and will need to check.
Can you post a small sample project demonstrating this issue?
As far as I am aware, we have not received any information on how to duplicate the issue, so it has not been looked into.
Bump... I'm having this issue too. I'm using 9.2.20092.2017. Any resolution yet?
I just upgraded the project to the latest service release and retested. And it seems the issue is still there.
Please check out the sample solution and advise.
Thanks