Skip to content

MovePageUp Method

Description

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

Syntax

Public Sub MovePageUp( _
    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 PageUp key while holding the Shift key to navigate the rows. This will cause the currently selected row(s) to remain selected up to the row 1 page up. The row 1 page up will become both focused and selected.

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

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

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

Remarks

Call the MovePageUp method if you want to move focus to a row, moving up by 1 page (a count of rows visible in a view equal to 1 page).

The MovePageUp method is used to move focus and/or selection up one page. It simulates pressing the PageDown key and can be combined with the Shift or Control simulated keys to select multiple rows or move the focus to the next page without selecting the row.

See Also


See Also

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