Skip to main content

TcxComponentCollection.EndUpdate(Boolean) Method

Releases a lock and updates the collection.

Declaration

procedure EndUpdate(AForceUpdate: Boolean = True); virtual;

Parameters

Name Type
AForceUpdate Boolean

Remarks

Use the EndUpdate method paired with the BeginUpdate method to enclose a block of statements, which make bulk updates to the collection.

Note

since the execution of a block of statements can exit in either a normal or exception state, the enclosed statements and the EndUpdate method should be contained within try… finally… blocks following the BeginUpdate method to ensure that the lock will be released in all cases.

See Also