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

PersistentObjectStorage<T>.DataSource Property

Gets or sets the object used as the data source to store persistent objects (appointments, resources or appointment dependencies).

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.Core.Desktop.dll

NuGet Packages: DevExpress.Scheduler.CoreDesktop, DevExpress.WindowsDesktop.Scheduler.CoreDesktop

Declaration

[DefaultValue(null)]
public virtual object DataSource { get; set; }

Property Value

Type Default Description
Object *null*

An Object that represents the storage’s data source.

Remarks

Use the DataSource property to specify the data source from which the current storage object will obtain information about the persistent objects (appointments, resources or appointment depndencies) it contains.

Note

Enclose appointment and resource data source assignments in an PersistentObjectStorage<T>.BeginUpdate - PersistentObjectStorage<T>.EndUpdate transaction pair. This step is required because layout calculation starts asynchronously immediately after each data source assignment. In the case of several data source assignments which follow each other, the layout events may occur before a layout is finalized.

See Also