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

# TCustomGrid.Invalidate

Performs a request to redraw the control.

## Declaration

Source position: grids.pas line 1331

`public procedure TCustomGrid.Invalidate; override;`

## Description

Invalidate is an overridden method in TCustomGrid. It ensures that the internal update counter is at 0 before forcing the control to be redrawn. No actions are performed in the method if the counter has a non-zero value.

Invalidate calls the inherited method where the paint request is performed when the Handle for the control has been allocated.

Invalidate is called when color, style, or content changes occur in the grid which require the control to be redrawn. For instance:

- AltColorStartNormal
- AlternateColor
- BorderColor
- Color
- DefaultDrawing
- DoOnChangeBounds
- FadeUnfocusedSelection
- FixedColor
- FixedGridLineColor
- FocusRectVisible
- Flat
- GridLineColor
- GridLineStyle
- GridLineWidth
- InvalidateGrid
- MouseDown
- Notification
- SelectedColor
- Selection
- TitleStyle
- VisualChange
- UseXORFeatures

## See also

TWinControl.Invalidate |  | Schedules a repaint request.