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

TCustomGrid.DoEnter

Performs actions needed when the grid control receives focus.

Declaration

Source position: grids.pas line 1031

protected procedure TCustomGrid.DoEnter; override;

Description

DoEnter is an overridden method in TCustomGrid. The inherited DoEnter method is called on entry to signal the OnEnter event handler (when assigned).

It ensures that the active selection and optional editor control are restored when grid control receives focus. If the Editor is not locked for update, and is always visible, the Editor class is re-selected and it is displayed in the active cell. When the Editor is not always visible (goAlwaysShowEditor is not in Options), InvalidateFocused is called to request the active cell or row selection to be redrawn.

DoEnter is called from the CMEnter 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.SelectActive

  

Indicates if a Selection is active in the grid control.

TWinControl.DoEnter

  

Signals the OnEnter event handler (when assigned) when the control receives focus.

TWinControl.OnEnter

  

Event handler signalled when the control receives focus.

TWinControl.CMEnter

  

Handles the CM_ENTER control message for the control.


Version 4.0 Generated 2025-05-03 Home