MoveLastRow Method
Description
Moves the focus and/or selection to the last row in the grid. Simulates pressing the End key when navigating the grid rows.
Syntax
Public Sub MoveLastRow( _
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 Home key while holding the Shift key to navigate the rows. This will cause the currently selected row and all rows above the current row to become selected. The first row in the grid will be given focus.
When False, the current selection will be lost and the last row in the grid will become both focused and selected.
- IgnoreSelection
When True, simulates holding down the Control (Ctrl) key. This would be equivalent to pressing the Home key while holding the Control key to navigate the rows. This will cause the currently selected row(s) to remain selected while focus is moved to the first row in the grid. The first row will not become selected, only focused.
Note: If SelectBlock is True, then IgnoreSelection will be ignored.
Remarks
The MoveFirstRow method is used to move focus and/or selection to the first row in the grid. It is used to simulate pressing the Home key and can be combined with the Shift or Control simulated keys to select multiple rows or move the focus to the first row without selecting the row.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.