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

TColumnButtonStyle

Enumeration with cell editor types available in a grid control.

Declaration

Source position: grids.pas line 153

type TColumnButtonStyle = (

  cbsAuto,

  

Button style is automatically determined by the grid control. Results in a TStringCellEditor being used for the cell.

  cbsEllipsis,

  

Button style with an Ellipsis (...) is displayed as the cell editor. Results in a TCompositeCellEditor being used for the cell.

  cbsNone,

  

Indicates no editor is required for a cell.

  cbsPickList,

  

Indicates a Pick List is used in the grid column. Results in a TPickListCellEditor being used for the cell.

  cbsCheckboxColumn,

  

Indicates a check box is displayed as the editor for the grid column.

  cbsButton,

  

Indicates a cell editor with a Button is used in the grid column. Causes a TButtonCellEditor to be created.

  cbsButtonColumn

  

Indicates a button, centered in the cell, is used in the grid column.

);

Description

TColumnButtonStyle is an enumerated type with values that represent the different cell editor types available in a grid control. TColumnButtonStyle is the type used for the TGridColumn.ButtonStyle property, and passed as an argument when an editor is requested for a column definition. It is also used when the TCustomGrid.GetDefaultEditor method is called to get the default cell editor for a given column.

See also

TGridColumn.ButtonStyle

  

The style used for a button displayed for cells in the column.

TCustomGrid.GetDefaultEditor

  

Gets the default cell editor for the specified column.


Version 3.2 Generated 2024-02-25 Home