RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.BeginUpdate Method

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

Pascal
procedure BeginUpdate;
C++
__fastcall BeginUpdate();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!