windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-42c463d8.md
Gets or sets the storage for the Scheduler control.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[DefaultValue(null)]
public ISchedulerStorage DataStorage { get; set; }
<DefaultValue(Nothing)>
Public Property DataStorage As ISchedulerStorage
| Type | Default | Description |
|---|---|---|
| ISchedulerStorage | null |
An ISchedulerStorage object that is the data storage for the Scheduler control.
|
Use this property to get or set the Scheduler data storage. The data storage contains appointments, resources and appointment dependencies data for the scheduler.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DataStorage property.
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.
winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/OutlookAppointmentForm.cs#L49
Guard.ArgumentNotNull(control, "control");
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage");
Guard.ArgumentNotNull(apt, "apt");
edStatus.Storage = control.DataStorage;
edLabel.Storage = control.DataStorage;
// Correct the text editor selection, which may result in overwriting the first typed character.
SchedulerDataStorage storage = control.DataStorage as SchedulerDataStorage;
if (storage.Appointments.IsNewAppointment(appointment)) {
winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L41
Guard.ArgumentNotNull(control, "control");
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage");
Guard.ArgumentNotNull(apt, "apt");
Guard.ArgumentNotNull(control, "control")
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage")
Guard.ArgumentNotNull(apt, "apt")
edStatus.Storage = control.DataStorage
edLabel.Storage = control.DataStorage
winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L51
Guard.ArgumentNotNull(control, "control")
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage")
Guard.ArgumentNotNull(apt, "apt")
See Also