Visual Basic: DataGrid Control
See Also Example Applies To
Sets or returns a value that defines the behavior of the tab key.
object.TabAction [= value]
The TabAction property syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|value||A number or constant that defines the behavior of the tab key, as described in Settings.|
The settings for value are:
|dbgControlNavigation||0||(Default) The tab key moves to the next or previous control on the form.|
|dbgColumnNavigation||1||The tab key moves the current cell to the next or previous column. However, if this action would cause the current row to change, then the next or previous control on the form receives focus.|
|dbgGridNavigation||2||The tab key moves the current cell to the next or previous column. The behavior of the tab key at row boundaries is determined by the WrapCellPointer property. When this setting is used, the tab key never results in movement to another control.|
The TabAction property does not determine if the tab key will cross split boundaries. Use the TabAcrossSplits property to control this behavior.
The value of the TabAction property overrides the WrapCellPointer property behavior. For example, if WrapCellPointer is True and TabAction is set to dbgColumnNavigation, and you're on the last column of the DataGrid, pressing the Tab key brings you to the next control in the tab index order instead of to the first column of the next row.