<< Click to Display Table of Contents >>
Manual > Control Reference > Basics > Grid control > Methods >
Gets the display indexes of the currently selected rows as an array.
syntax
GetSelectedRows()
Return Value
Type:
Number
An array of display index of the selected rows, or #NOTHING# if not selected.
Explanation
Gets the display indexes of the currently selected rows as an array. If no rows are selected, returns #NOTHING#.
You can select multiple rows by selecting CELLS or ROWS for SelectArea.
In particular, if you set SelectArea to ROWS and SelectMultiple to TRUE, you can select multiple separate rows.
reference
IsSelectedRow
IsSelectedCol
IsSelectedCell
GetSelectedRow
GetSelectedRows
GetSelectedCol
GetSelectedCols
GetSelectedCell
SelectCell
ClearSelection