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

TCustomGrid.DoExit

Performs actions needed when the control loses focus.

Declaration

Source position: grids.pas line 1030

protected procedure TCustomGrid.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

TCustomGrid.Options

  

Contains the set of optional features and/or behaviors enabled for the grid control.

TCustomGrid.Editor

  

The editor control used to modify the value in the current cell.

TCustomGrid.ResetEditor

  

Resets the value in the cell Editor, and optionally re-displays and selects it content.

TCustomGrid.SelectActive

  

Indicates if a Selection is active in the grid control.

TGridState

  

Enumerated type with grid state values.

TWinControl.DoExit

  

Signals the OnExit event handler (when assigned) when the control loses focus.

TWinControl.OnExit

  

Event handler signalled when the control loses focus.

TWinControl.CMExit

  

Handles the CM_EXIT control message for the control.


Version 4.0 Generated 2025-05-03 Home