Skip to content

MoveToColumn Method

Description

Moves focus to the item in the specified column of the currently selected row.

Syntax

Public Sub MoveToColumn( _
    ByVal [ColumnIndex](#) As Long, _
    Optional ByVal [ClearIfNonFocusable](#) As Boolean = False _
)

Parameters

  • ColumnIndex: Index of the column to focus.
  • ClearIfNonFocusable: Used to indicate which action to perform if the column specified by ColumnIndex has an item with Focusable set to False.

    • Set to True to clear focus from all items in the currently selected row if the column specified by ColumnIndex has an item with Focusable set to False.

    • Set to False to return focus back to the previously focused item in the currently selected row if the column specified by ColumnIndex has an item with Focusable set to False. This means the focused item will not change.

Remarks

To use MoveToColumn, FocusSubItems must be True.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.