TCustomGrid.SetEditText procedure
Sets the value used in the cell Editor to the specified text.
Declaration
procedure SetEditText(ACol: LongInt; ARow: LongInt; const Value: string)
; virtualDescription
Sets the text displayed in the Editor for the cell at the
position specified in ACol and ARow to the given value.
SetEditText has an empty implementation in
TCustomGrid.
It is overridden in
TCustomDrawGrid to signal the
OnSetEditText event handler (when assigned).
SetEditText is used in KeyDown when the Escape key
(VK_ESCAPE) is not handled by the grid control. It is called from the
EditorGetValue method when a visible cell Editor is updated. It is
called from EditorTextChanged method when the value in a cell
Editor has been altered using the Change or Select
methods in the editor control.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
