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
312
KeyDown (Tab) not firing for last row of UltraGrid page
posted

Hi,

I'm having issue capturing the Tab key KeyDown event when on the last row of an UltraGrid for a page. Other character/number keys are getting captured just fine, Tab KeyDown works as expected for all other rows. KeyUp also has issues (firing only 2nd time Tab is pressed), but that is not the primary concern - I need the KeyDown to work.

Is this being handled by UltraGrid internally? Can you please provide a workaround?

Thanks,

Ross

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Ross,

    Trapping the Tab key can be tricky, because the Form handles it for navigating between controls. Have you tried this with any other control? My guess is that Tab will not fire KeyDown for any control if the Tab is handled by the form and it navigates from one control to another.

    When navigating between cells, the grid handles the tab key, but when you are on the last cell, it does not - it let's the form handle it. So the behavior you are getting here sounds correct.

    You can probably use the KeyPreview on the form and handle Tab on the form level to get around this.

     

Children