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

TCustomGrid.AutoEdit

Indicates if edit mode is automatically entered when a cell is selected.

Declaration

Source position: grids.pas line 1222

protected property TCustomGrid.AutoEdit : Boolean
  read FAutoEdit
  write FAutoEdit
  default True;

Description

AutoEdit is a Boolean property which indicates if edit mode is automatically entered when a cell is selected in the grid control. The default value for the property is True.

When AutoEdit is set to True, the cell Editor is automatically displayed when a non-fixed cell is entered using keyboard navigation or a mouse click. When AutoEdit is set to False, the cell Editor is not displayed until toggled. Use the F2 or Enter key to activate a cell Editor. Use a second mouse click in the active cell to display the cell Editor.

AutoEdit does not allow a cell to be edited if the column definition in the Columns collection is defined as ReadOnly.

Use the Options property to enable or disable editing in the grid control using the value goEditing. Use the value goAlwaysShowEditor to always display the cell Editor.


Version 3.2 Generated 2024-02-25 Home