Sign in Join
FPDoc Onlineexperiment

TCustomGrid.DoExit procedure

Member of TCustomGridprotectedIn unit Grids

Performs actions needed when the control loses focus.

Declaration

pascal
procedure DoExit; override

Description

DoExit is an overridden method in TCustomGrid. It ensures that an active editor control and the active selection are updated when the grid control loses focus.

If the editor for the control is not always visible (goAlwaysShowEditor in Options), InvalidateFocused is called to invalidate the cell or the row. ResetEditor is called to sync and re-display the Editor when needed. SelectActive is set to False when the internal grid state is gsSelecting, and it is reset to gsNormal.

The inherited DoExit method is called to signal the OnExit event handler (when assigned).

DoExit is called from the CMExit method when it handles the corresponding control message.

See also

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