[Overview][Constants][Types][Classes][Procedures and functions][Index] |
ColumnEditorStyle gets the button style for the column being edited.
Source position: dbgrids.pas line 429
protected function TCustomDBGrid.ColumnEditorStyle( |
aCol: Integer; |
F: TField |
aCol |
|
Ordinal position for the column or field. |
F |
|
TField instance for the specified column number. |
Button style for the column or Field.
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.
Version 3.2 | Generated 2024-02-25 | Home |