Skip to main content
A newer version of this page is available. .

RepositoryItem.IsLockUpdate Property

Gets a value indicating whether the editor is immediately updated in response to changing its settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[Browsable(false)]
public virtual bool IsLockUpdate { get; }

Property Value

Type Description
Boolean

true if the editor cannot be updated until unlocked; otherwise, false.

Remarks

After the RepositoryItem.BeginUpdate method is called, the editor is locked and is not immediately updated in response to changing its settings. To allow editor updates, the RepositoryItem.EndUpdate or RepositoryItem.CancelUpdate method should be called. These methods are used to perform multiple changes without updating the editor after each modification. Note: each RepositoryItem.BeginUpdate method call increments the internal counter by one. Each RepositoryItem.EndUpdate or RepositoryItem.CancelUpdate method decrements the counter value. The editor can be updated only when the counter value is 0 (the initial value). Thus, the IsLockUpdate property returns true if the counter value is not 0.

Please refer to the Batch Modifications topic for additional information.

See Also