Sign in Join
FPDoc Onlineexperiment

TCustomDBGrid.SelectEditor procedure

Member of TCustomDBGridprotectedIn unit DBGrids

Gets the editor used for the SelectedField in the control.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.