TCustomDBGrid.ColumnEditorStyle function
ColumnEditorStyle gets the button style for the column being
edited.Declaration
function ColumnEditorStyle(aCol: Integer; F: TField)
: TColumnButtonStyleArguments
aCol | Ordinal position for the column or field. |
F | TField instance for the specified column number. |
Function result
Button style for the column or Field.
Description
ColumnEditorStyle is a
TColumnButtonStyle function used
to get the button style for the specified column number or Field in the grid
control. ColumnEditorStyle assumes the default button style is cbsAuto unless
overridden by settings in the Columns collection or by the Field definition
in the dataset.
ColumnEditorStyle calls ColumnFromGridColumn to get the TColumn instance for the specified column number. Its ButtonStyle property is used as the return value if Columns has been Enabled. Otherwise, DefaultEditorStyle is called for the specified TField to get the return value for the method. DefaultEditorStyle will use cbsCheckBoxColumn as the button style when dgeCheckboxColumn has been included in the OptionsExtra property.
ColumnEditorStyle is used in the implementation of various methods including: CellClick, DefaultDrawCell, DefaultDrawColumnCell, EditorByStyle, KeyDown and MouseDown.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
