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

# TCustomGrid.BorderStyle

Drawing style used for the borders on the control.

## Declaration

Source position: grids.pas line 1226

`protected property TCustomGrid.BorderStyle : TBorderStyle read FGridBorderStyle write SetBorderStyle default bsSingle;`

## Description

BorderStyle is a TBorderStyle property with the drawing style used for the borders around the control. BorderStyle uses a restricted range of values found in TFormBorderStyle: a single border (bsSingle) or none (bsNone). Changing the property value causes UpdateBorderStyle to be called.

Use EditorBorderStyle to set the border drawing style for cell Editor controls on the grid.

BorderStyle is used in the ancestor class to determine the creation parameters passed to the widgetset class instance.

## See also

TCustomGrid.UpdateBorderStyle |  | Updates the border style used for the control.
TBorderStyle |  | Possible types of borders (with or without border).
TFormBorderStyle |  | Represents border styles available for a Form.
TWinControl.BorderStyle |  | Indicates the border style displayed around the control.