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

# TCustomGrid.OnSelectEditor

Event handler signalled to select an Editor control for the current grid cell.

## Declaration

Source position: grids.pas line 1315

`protected property TCustomGrid.OnSelectEditor : TSelectEditorEvent read FOnSelectEditor write FOnSelectEditor;`

## Description

OnSelectEditor is a TSelectEditorEvent property with the event handler signalled to select an editor control for a cell in the grid. Arguments to the event handler contain the column and row numbers for the cell, and a variable parameter used to return the editor control used for the specified cell.

OnSelectEditor is signalled (when assigned) from the SelectEditor method. It is not signalled if EditingAllowed returns False for the selected column in Col. It allows the default cell editor for the column (returned from GetDefaultEditor) to be overridden with a user-determined editor for a specific cell.

## See also

TCustomGrid.Col |  | Column index for the selected grid cell.
TCustomGrid.EditingAllowed |  | Indicates if the grid and specified column allow editing.
TCustomGrid.GetDefaultEditor |  | Gets the default cell editor for the specified column.
TCustomGrid.SelectEditor |  | Gets the cell editor for the current cell, and sets its PopupMenu.
TCustomGrid.SelectCell |  | Determines whether the specified cell can be selected in the grid control.
TSelectEditorEvent |  | Specifies an event handler signalled to get an editor control for the specified cell.