FarPoint Forums

The FarPoint Message Boards
Welcome to FarPoint Forums Sign in | Join | Help
in Search

Usage of carriage return to move to the next row?

Last post 05-09-2008, 10:41 AM by Amit P. 3 replies.
Sort Posts: Previous Next
  •  05-09-2008, 7:49 AM 63241

    Usage of carriage return to move to the next row?

    Hi,

    I have a very preliminary question with respect to usability point of view of Farpoint spreadsheet.

    In the Farpoint spreadsheet I would like to move control to the next row (in the same column) if user presses Carriage return (Enter) key - similar to microsoft excel

    As of now it seems that when Carriage return is pressed the control remains in the same cell.

    Can anyone tell me if I am missing something? or is it not possible?

    Thanks in advance.

    Regards,
    Amit
  •  05-09-2008, 8:18 AM 63245 in reply to 63241

    Re: Usage of carriage return to move to the next row?

    Amit -

    Have a look at the following post...

    http://www.clubfarpoint.com/Forums/forums/post/7879.aspx

    Bob M.
    FarPoint Technologies, Inc.
  •  05-09-2008, 8:28 AM 63247 in reply to 63241

    Re: Usage of carriage return to move to the next row?

    Amit,

    By default, the Enter key is mapped to the StartEditing action (in the WhenFocused input map) and StopEditing action (in the WhenAncestorOfFocused input map).  You can remap the Enter key to the MoveToNextRow action using the following code...

        fpSpread1.GetInputMap(InputMapMode.WhenFocused).Put(new Keystroke(Keys.Enter, Keys.None), SpreadActions.MoveToNextRow);
        fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused).Put(new Keystroke(Keys.Enter, Keys.None), SpreadActions.MoveToNextRow);

  •  05-09-2008, 10:41 AM 63250 in reply to 63247

    Re: Usage of carriage return to move to the next row?


    Many thanks to both of you for this quick solution! ....


View as RSS news feed in XML
     FarPoint Forums Home