FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / KeyActionEnter Property

In This Topic
    KeyActionEnter Property (C1FlexGrid)
    In This Topic
    Gets or sets the action to be performed when the user presses the ENTER key.
    Syntax
    'Declaration
     
    
    Public Property KeyActionEnter As KeyActionEnum
    public KeyActionEnum KeyActionEnter {get; set;}
    Remarks

    By default, the grid will move the selection down to the next visible row when the user presses the ENTER key. If the grid is editable, pressing ENTER will cause the grid to enter edit mode, and pressing ENTER while in edit mode will cause the cursor to move down.

    This property allows you to modify this behavior and disable cell navigation with the ENTER key, or cause it to move the selection to the next column instead of row.

    Note that the KeyActionEnum.MoveAcrossOut and as KeyActionEnum.MoveAcross settings have the same effect when applied to this property. Pressing the ENTER key will move the selection within the grid, but will not move the focus to the next control on the form.

    See Also