Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomEdit.LockChangeEvents(Boolean,Boolean) Method

Enables/postpones edit value change notification events.

#Declaration

Delphi
procedure LockChangeEvents(ALock: Boolean; AInvokeChangedOnUnlock: Boolean = True);

#Parameters

Name Type
ALock Boolean
AInvokeChangedOnUnlock Boolean

#Remarks

To prevent the Properties.OnChange and Properties.OnEditValueChanged events from being generated during intermediate edit value updates, enclose the code performing the updates within LockChangeEvents(True) / LockChangeEvents(False) blocks.

Pass False as the AInvokeChangedOnUnlock parameter to prohibit these events from being generated when the last LockChangeEvents(False) call is made.

Use the AreChangeEventsLocked property to determine whether change notifications are currently postponed for the editor.

See Also