C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : KeyActionEnter Property |
'Declaration
<C1DescriptionAttribute("Gets or sets the action to be performed when the user presses the ENTER key.")> <DefaultValueAttribute()> <C1CategoryAttribute("Behavior")> Public Property KeyActionEnter As KeyActionEnum
'Usage
Dim instance As C1FlexGridBase Dim value As KeyActionEnum instance.KeyActionEnter = value value = instance.KeyActionEnter
[C1Description("Gets or sets the action to be performed when the user presses the ENTER key.")] [DefaultValue()] [C1Category("Behavior")] public KeyActionEnum KeyActionEnter {get; set;}
[C1Description("Gets or sets the action to be performed when the user presses the ENTER key.")] [DefaultValue()] [C1Category("Behavior")] public: property KeyActionEnum KeyActionEnter { KeyActionEnum get(); void set ( KeyActionEnum value); }
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2