Vcl.DBGrids.TCustomDBGrid.EndUpdate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndUpdate;

C++

HIDESBASE void __fastcall EndUpdate();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Description

Decrements the UpdateLock property.

Applications cannot call this protected method. Data-aware grids call EndUpdate internally after making changes that affect the data that is drawn in the grid. EndUpdate returns the UpdateLock to the state it was in before the BeginUpdate method was called at the start of the changes.

While UpdateLock is greater than 0, the grid does not repaint its cells. When UpdateLock returns to 0, painting is reenabled. BeginUpdate and EndUpdate prevent the grid from flickering when the grid is resized or the user scrolls through the data.

See Also