Back to Devexpress

SchedulerControl.DataStorage Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-42c463d8.md

latest5.4 KB
Original Source

SchedulerControl.DataStorage Property

Gets or sets the storage for the Scheduler control.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(null)]
public ISchedulerStorage DataStorage { get; set; }
vb
<DefaultValue(Nothing)>
Public Property DataStorage As ISchedulerStorage

Property Value

TypeDefaultDescription
ISchedulerStoragenull

An ISchedulerStorage object that is the data storage for the Scheduler control.

|

Remarks

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

csharp
Guard.ArgumentNotNull(control, "control");
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage");
Guard.ArgumentNotNull(apt, "apt");

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Forms/MyAppointmentEditForm.cs#L121

csharp
edStatus.Storage = control.DataStorage;
edLabel.Storage = control.DataStorage;

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/MyInplaceEditor.cs#L79

csharp
// 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

csharp
Guard.ArgumentNotNull(control, "control");
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage");
Guard.ArgumentNotNull(apt, "apt");

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/OutlookAppointmentForm.vb#L46

vb
Guard.ArgumentNotNull(control, "control")
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage")
Guard.ArgumentNotNull(apt, "apt")

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Forms/MyAppointmentEditForm.vb#L134

vb
edStatus.Storage = control.DataStorage
edLabel.Storage = control.DataStorage

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L51

vb
Guard.ArgumentNotNull(control, "control")
Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage")
Guard.ArgumentNotNull(apt, "apt")

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace