[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 1330

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:

See also

TWinControl.Invalidate

  

Schedules a repaint request.


Version 4.0 Generated 2025-05-03 Home