1
Vote

Problem with arrow navigation and spanned cells

description

Hi.
I could notice that there is a little error somewhere in a CanReceiveFocus method or MoveActiveCell (SelectionBase):
If a spanned cell is focused and you want to navigate to the left cell with arrow left key (keyboard), it doesn't work. You have to press the key the same amount of times than the ColSpan value.

To avoid problem, the check with CanReceiveFocus should be changed, or the Focus method.

I could sove the problem by adding
newPosition = Grid.PositionToStartPosition(newPosition);
in "MoveActiveCell" method, before the last "if" test (Focus).
But I don't know if there are some other places where the bug could happen.

Note: I made a mistake, the attachments/comments do not refer to this issue and should be removed, what I'm not allowed to do.

file attachments

comments

jray wrote Mar 15, 2016 at 8:42 PM

After vertical scrolling

wrote Mar 15, 2016 at 8:43 PM

jray wrote Mar 15, 2016 at 8:43 PM

And after 2nd vertical scrolling (down and up): look at the first row (headers)

wrote Mar 18, 2016 at 12:48 PM

wrote Mar 18, 2016 at 12:48 PM