Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
Lost focus not sent while editing text in grid and give focus to another component
posted

Hi,

I have a problem whith the ultraGrid.
I am editing a string field, and while still editing, I click outside the grid such as I gice the focus to another component.
The gridLostFocus event is not raised. (If I am editing in an UltraNumericEditor it works fine).
Is that a know problem, or do I do something wrong ?

Thanks

Anne-Lise

Parents
  • 469350
    Offline posted

    Hi Anne-Lise,

    What component outside the grid are you clicking on? Not all components take focus. If you click on a toolbar button, for example, the grid will not lose focus.

    In any case, I would strongly recommend that you do not use LostFocus or GotFocus events on any control. These events are tied directly to Windows messages and they will give you all sorts of unexpected results. Microsoft's documentation advises against using them in DotNet, also. You should use Enter and Leave, instead.

Reply Children