[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# TCustomGrid.ExtendedSelect

Controls whether extending the current cell selection(s) on the control is enabled.

## Declaration

Source position: grids.pas line 1252

`protected property TCustomGrid.ExtendedSelect : Boolean read FExtendedSelect write FExtendedSelect default True;`

## Description

ExtendedSelect is a Boolean property which controls whether selected cells can be extended beyond the current value(s) in Selection and SelectedRange. The default value for the property is True and allows Selection / SelectedRange to be extended when range selection is enabled for the grid control. ExtendedSelect has no effect if goRangeSelect has not been included in the Options property.

ExtendedSelect is used when the value in SelectActive property is changed. It prevents SelectActive from being enabled when range selection is not enabled, or a cell editor is already (or always) active for a cell in the current selection.

ExtendedSelect is used in MouseDown when a mouse click is detected for a cell. It causes an active cell editor (or its associated cell editor button) to be deactivated before the selection is extended. It is also used in MouseMove when logical cell coordinates are retrieved for a selection at the current mouse position.

Use Options to enable range selection (goRangeSelect) or to control use of cell editors (goEditing, goAlwaysShowEditor).

Use RangeSelectMode to control whether multi-selections are enabled for the control. Use Selection to access a single selected range for the grid. Use SelectedRange and SelectedRangeCount to access multi-selection ranges on the control.

Use FixedGrid to determine whether editable, non-fixed columns or rows are available on the grid control.

## See also

TCustomGrid.SelectActive |  | Indicates if a Selection is active in the grid control.
TCustomGrid.MouseDown |  | Handles mouse down events for the grid control.
TCustomGrid.MouseMove |  | Applies a change in the mouse pointer position to the grid control.
TCustomGrid.FixedGrid |  | Determines if all columns or all rows in the grid are fixed.
TCustomGrid.Options |  | Contains the set of optional features and/or behaviors enabled for the grid control.
TCustomGrid.RangeSelectMode |  | Controls the range selection mode used for the grid.
TCustomGrid.Selection |  | Rectangle with the current cell selections in the grid control.
TCustomGrid.SelectedRange |  | Provides indexed access to TGridRect values in the currently selected range.
TCustomGrid.SelectedRangeCount |  | Number of cell rectangles in the selected range for the grid.
TCustomGrid.Columns |  | Definitions for the columns displayed the grid.
TGridColumns |  | Collection used to store column definitions for a grid control.
TGridColumn |  | Implements a column definition used for tabular data in TCustomGrid.
TGridOptions |  | Set type used to store enabled grid options.
TGridOption |  | Represents grid option values available for grid controls.