'宣言 Public Property KeyActionEnter As KeyActionEnum
public KeyActionEnum KeyActionEnter {get; set;}
'宣言 Public Property KeyActionEnter As KeyActionEnum
public KeyActionEnum KeyActionEnter {get; set;}
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.