Vcl.DBGrids.TCustomDBGrid.BeginUpdate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BeginUpdate;

C++

HIDESBASE void __fastcall BeginUpdate();

Properties

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

Description

Increments the UpdateLock property when the data in the grid changes.

Applications cannot call this protected method. Data-aware grids call BeginUpdate internally before making changes that affect the data that is drawn in the grid. Once the change is complete, the data-aware grid calls EndUpdate, which decrements the UpdateLock property.

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

See Also