Hello,
I use a grid in my application. It is read-only. The user must select whole rows just like a list box (that works). I can use the mouse for grid navigation (scrolling etc.). But I want use the arrow keys to for grid navigation.
Up: select the record up
Down: select the record down
Right: select the cell right (so i can scroll in my grid)
Left: select the cell left
I work with .KeyPress of the textboxes in the grid control and then activate a cell with .ActivateCell.
All is working till that the scrollbar is going to scroll.
On this moment i have made a special methode in my form wich handels the keypress of the textboxes central. For the left key I used the following:
xxx.grdPersonen.ActivateCell(xxx.grdPersonen.ActiveRow, xxx.grdPersonen.ActiveColumn-1)
I am waiting for your proffesional advise,
Qwark
I use a grid in my application. It is read-only. The user must select whole rows just like a list box (that works). I can use the mouse for grid navigation (scrolling etc.). But I want use the arrow keys to for grid navigation.
Up: select the record up
Down: select the record down
Right: select the cell right (so i can scroll in my grid)
Left: select the cell left
I work with .KeyPress of the textboxes in the grid control and then activate a cell with .ActivateCell.
All is working till that the scrollbar is going to scroll.
On this moment i have made a special methode in my form wich handels the keypress of the textboxes central. For the left key I used the following:
xxx.grdPersonen.ActivateCell(xxx.grdPersonen.ActiveRow, xxx.grdPersonen.ActiveColumn-1)
I am waiting for your proffesional advise,
Qwark