Sign in Join
FPDoc Onlineexperiment

TCustomGrid.SetFocus procedure

Member of TCustomGridpublicIn unit Grids

Gives focus to the grid control.

Declaration

pascal
procedure SetFocus; override

Description

SetFocus is an overridden procedure used to make the grid control the currently focused control. SetFocus ensures that pending Tab key navigation for an active cell editor is handled properly. If an Editor is both available and visible, it calls its SetFocus method. Otherwise, the grid control becomes the focused control.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.