Skip to content

MoveDown Method

Description

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

Syntax

Public Sub MoveDown( _
    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 Down 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 next row. The next row will become both focused and selected.

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

  • IgnoreSelection
    When True, simulates holding down the Control (Ctrl) key. This would be equivalent to pressing the Down 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 next row. The new focused row will not become selected.

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

Remarks

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

See Also


See Also


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