[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
The editor used to modify the value in the current cell.
Source position: grids.pas line 1216
protected property TCustomGrid.Editor : TWinControl |
Editor is a TWinControl descendant which contains the control used to edit the value in the current cell for the grid control.
There are several editor styles available for columns in the grid control: String, Button, Composite, and Pick List. Button editors display a button that can be clicked to perform actions which determine the value for the cell. A composite editor uses an editor for the string value and a button for additional actions. A pick list editor allows selection of oneof the predetermined values for the cell. The String editor is essentially a TEdit control, and is the default editor style used in the grid control.
The Editor style is determined either by examing values in the column definition stored in the Columns property, or using the OnSelectEditor event handler. OnSelectEditor is signalled when Columns has not been Enabled in the grid.
Editor display behavior is controlled by properties like Options and AutoEdit.
Options can be used to enabled / disabled cell editor features using the following:
The AutoEdit property determines whether a cell is automatically placed in edit mode as soon as it is selected. This is basically the same as including goAlwaysShowEditor in the Options property.