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

TCustomGrid.EditorBorderStyle

The border style for the Editor control.

Declaration

Source position: grids.pas line 1243

protected property TCustomGrid.EditorBorderStyle : TBorderStyle
  read GetEditorBorderStyle
  write SetEditorBorderStyle;

Description

EditorBorderStyle is a name property which contains the border style used for the Editor in the grid control. The value for the property depends on the editor style used for the cell in the grid.

When TStringCellEditor, TCompositeCellEditor, or TPickListCellEditor are used for the cell, the property value is read from the BorderStyle in the editor control. For all other editors (TButtonCellEditor), the value bsSingle is returned as the property value.

Setting a new value for the property causes the BorderStyle for the Editor to be updated, and the EditorPos method is called to recalculate the editor bounds and position.

Setting the property to bsSingle forces a border to be drawn inside the cell rectangle where the control is located. For some widgetsets, the border is drawn using theme services to maintain a uniform appearance for the platform.


Version 3.2 Generated 2024-02-25 Home