Vcl.DBGrids.TCustomDBGrid.EndLayout

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndLayout;

C++

void __fastcall EndLayout();

Properties

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

Description

Decrements the LayoutLock property and recomputes the Columns property if LayoutLock reaches 0.

Applications cannot call this protected method. Data-aware grids call EndLayout internally after changes to the Columns property or the dataset. EndLayout decrements the LayoutLock property which was previously incremented by BeginLayout before the Columns property was changed or when notification of the change to the dataset was received.

If LayoutLock returns to 0, EndLayout updates the Fields property to match both the bindings of the Columns property and the fields available in the dataset. The Columns property is then updated in turn to match the Fields property. This ensures that the Columns property matches both the specified column bindings and the fields available in the dataset.

See Also