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

# TCustomDBGrid.SelectEditor

Gets the editor used for the SelectedField in the control.

## Declaration

Source position: dbgrids.pas line 500

`protected procedure TCustomDBGrid.SelectEditor; override;`

## Description

SelectEditor is a procedure used to get the editor used for the SelectedField in the control. SelectEditor requires an active dataset in DataLink to access properties and methods in SelectedField. SelectEditor uses SelectedField to get the maximum length of the Field in the dataset and stores the value in the Editor for the control.

SelectEditor calls the Inherited SelectEditor method to initialize the class used in the Editor property. SelectEditor signals the OnSelectEditor event handler (when assigned) to get a custom value for the Editor property. Please note that Editor is set to Nil if the OnSelectEditor event handler is not assigned for the control.

## See also

TCustomGrid.SelectEditor |  | Gets the cell editor for the current cell, and sets its PopupMenu.