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

TCustomGrid.EditorShow

Displays the Editor for the selected cell.

Declaration

Source position: grids.pas line 1080

protected procedure TCustomGrid.EditorShow(

  const SelAll: Boolean

); virtual;

Description

Displays and enables the cell Editor for the selected cell, and optionally selects all content in the cell.

No actions are performed in the method at design-time, or during LCL component streaming. The grid control must have an allocated Handle, and be Enabled and Visible (including the Parent). In addition, both the grid and the column must allow editing. Use Options to enable editing in grid cells. Use Columns to define TGridColumn instances with editable columns using the required button style for the column data.

No actions are performed in the method when Editor has not been assigned, or has already been displayed, or is currently locked by a call to LockEditor.

EditorShow sets the value in EditorMode to True, and saves the existing cell value on entry. EditorShowing is set to True to indicate that the Editor is visible, and calls doEditorShow to display the Editor control.

SelAll indicates whether all of the content in the current cell is selected in the Editor for the control. When set to True, the EditorSelectAll method is called to post the GM_SELECTALL message to the Editor control. The value in GridState is set to gsNormal prior to exiting from the method.

EditorShow is called when the value goAlwaysShowEditor is included in the Options for the grid control. It is also called from methods like:


Version 4.0 Generated 2025-05-03 Home