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
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.
Hi again,
Thanks for your quick reply! The problem occurs on when the last row in an UltraGrid is selected - the Tab key down/up is not being captured.
This issue does not occur (Tab key down gets captured just fine) for when the last cell in an UltraGrid is selected however.
We have event handlers for Form_KeyDown for the parent form and also KeyDown event handlers for parent controls, however it seems that this event gets swallowed up by the UltraGrid.
I would love to provide an example, however that's not possible for this particular issue :(
Thanks again,