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

# TCustomGrid.GridLineStyle

Style used to draw the grid lines on the control.

## Declaration

Source position: grids.pas line 1266

`protected property TCustomGrid.GridLineStyle : TPenStyle read FGridLineStyle write SetGridLineStyle default psSolid;`

## Description

GridLineStyle is a TPenStyle property with the pen drawing style used to draw grid lines on the control. The default value for the property is psSolid. Changing the value for the property causes the grid control to be redrawn.

GridLineStyle, GridLineWidth, GridLineColor, and FixedGridLineColor are used in the DrawCellGrid method when GridLineWidth is set to a positive non-zero value.

## See also

TCustomGrid.DrawCellGrid |  | Draws cell grid lines for the control.
TCustomGrid.FixedGridLineColor |  | Color used to draw the separator lines for fixed grid cells.
TCustomGrid.GridLineColor |  | Color used for the grid lines on the control.
TCustomGrid.GridLineWidth |  | Width (thickness) for grid lines drawn on the control.
TCanvas.Pen |  | The Pen to be used for writing in this canvas.
TPen.Style |  | Contains the line drawing style for the pen.
TPenStyle |  | Represents line drawing styles used when rendering to a canvas.