Skip to content

MoveUp Method

Description

Moves the focus and/or selection up one row. Simulates pressing the up arrow key to navigate the grid rows.

Syntax

Public Sub MoveUp( _
    Optional ByVal [SelectBlock] As Boolean = False, _
    Optional ByVal [IgnoreSelection] As Boolean = False _
)

Parameters

  • SelectBlock
    When True, simulates holding down the Shift key. This would be equivalent to pressing the Up Arrow key while holding the Shift key to navigate the rows. This will cause the currently selected row(s) to remain selected as well as the previous row. The previous row will become both focused and selected.

When False, the current selection will be lost and the previous row will become both focused and selected.

  • IgnoreSelection
    When True, simulates holding down the Control (Ctrl) key. This would be equivalent to pressing the Up Arrow key while holding the Control key to navigate the rows. This will cause the currently selected row(s) to remain selected while moving focus to the previous row. The new focused row will not become selected.

Note: If SelectBlock is True, then IgnoreSelection will be ignored.

Remarks

The MoveUp method is used to move focus and/or selection to the previous row. It is used to simulate pressing the Up Arrow key and can be combined with the Shift or Control simulated keys to select multiple rows or move the focus to the previous row without selecting the row.

See Also

See Also


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