Back to Devexpress

PersistentObjectStorage<T>.DataSource Property

corelibraries-devexpress-dot-xtrascheduler-dot-persistentobjectstorage-1-7740d10b.md

latest2.1 KB
Original Source

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.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

csharp
[DefaultValue(null)]
public virtual object DataSource { get; set; }
vb
<DefaultValue(Nothing)>
Public Overridable Property DataSource As Object

Property Value

TypeDefaultDescription
Objectnull

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 SchedulerStorage.BeginUpdate and SchedulerStorage.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

DataMember

PersistentObjectStorage<T> Class

PersistentObjectStorage<T> Members

DevExpress.XtraScheduler Namespace