Sign in Join
FPDoc Onlineexperiment

TCustomGrid.OnSelectEditor property

Member of TCustomGridprotectedIn unit Grids

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

Declaration

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

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