SchedulerStorageBase.BeginUpdate() Method
Locks the object until the EndUpdate or CancelUpdate method is called.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.Desktop.dll
NuGet Package: DevExpress.Scheduler.CoreDesktop
Declaration
Remarks
Call the BeginUpdate method to maintain performance while applying multiple modifications to the object. After the BeginUpdate method the IsUpdateLocked property returns false to prevent other processes from modifying the object or retrieving its properties. After applying all modifications, call the EndUpdate or CancelUpdate method to finalize the update or cancel it.
Each call to BeginUpdate must be paired with a call to EndUpdate or CancelUpdate. To ensure that EndUpdate/CancelUpdate is always called even if an exception occurs, enclose them in the try…finally statement.
Important
In DevExpress versions prior to 18.1, calling the BeginUpdate method caused the storage to reload its item collection from a data source. Starting with version 18.1, this behavior has been changed and items are not reloaded until the SchedulerStorageBase.EndUpdate is called.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the BeginUpdate() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.