Hi,
I am working on ultra grid 2007
With the focus on ultra grid when i press the left arrow key, for the first time i am able to scroll left, but when i srcoll right using right arrow and again to the left using left arrow key, the grid loses its focus and focus is going to the button above the grid(taborder for that button = 2, grid = 3)
Hello Malli,
I have logged this as development item 91473. I will make another post when the issue has been resolved.
Our developers have determined that the UltraGrid is behaving as expected when the left arrow is pressed. The KeyDown event fires for the right arrow key because there is a key action mapped for that key, but no key action mapped for the left arrow key. Every Windows Forms control has an IsInputKey() method that returns true or false depending on whether that key means anything to the control. The KeyDown event will only fire if that method returns true for the specified key. In the UltraGrid's case, it only returns true from that method if there is a key action mapped for the specified key.
The easiest way to resolve the issue you are seeing is to add a key action mapping for the left arrow key using 0 as the value of the action parameter. Another solution would be to derive from the UltraGrid and override IsInputKey() to return true for the left arrow key.