RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDSTableProducer.EndLayout Method

Decrements a counter that indicates the number of times the computation of the column order has been begun but not completed.

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

Applications can't call this protected method. TDSTableProducer objects call EndLayout internally after making changes to the Columns property or when changes are made to the fields in DataSet

Each call to EndLayout should match a corresponding call to BeginLayout. If all BeginLayout calls have been matched by an EndLayout call, EndLayout calls DefineFieldMap to regenerate the field mapping for the dataset maintained by DataLink. The Columns property is then updated to match the field map in DataLink. This ensures that the Columns property matches both the specified column bindings and the fields available in the dataset. 

 

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