TcxCustomEdit.LockChangeEvents(Boolean,Boolean) Method
Enables/postpones edit value change notification events.
Declaration
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