Sign in Join
FPDoc Onlineexperiment

TCustomGrid.DoEditorShow procedure

Member of TCustomGridprotectedIn unit Grids

Performs actions needed to show the cell Editor for the grid control.

Declaration

pascal
procedure DoEditorShow; virtual

Description

Calls ScrollToCell to position the grid on the cell indicated by the Col and Row properties.

String- and Button-style editor controls are updated to use the alignment defined for the current column. If Columns has not been enabled, the default alignment for the cell is taLeftJustify. Calls EditSetValue to copy the cell content into the cell Editor.

The Editor.SetFocus method is called when the grid control currently has focus and the cell editor can receive focus. InvalidateCell is called to redraw the cell at the position in Col and Row.

DoEditorShow is called from the EditorShow method.

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