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