windowsforms-devexpress-dot-xtrascheduler-dot-resourcedatastorage-bdb3984f.md
Gets or sets the object used as the data source to store resources.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[DefaultValue(null)]
[DXCategory("Data")]
public object DataSource { get; set; }
<DefaultValue(Nothing)>
<DXCategory("Data")>
Public Property DataSource As Object
| Type | Default | Description |
|---|---|---|
| Object | null |
An Object that is the storage’s data source.
|
Use the DataSource property to specify the data source from which the current storage object obtains resources.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DataSource 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-linq-to-sql/CS/XtraScheduler_LINQ/Form1.cs#L20
this.schedulerStorage1.Appointments.DataSource = context.DBAppointments;
this.schedulerStorage1.Resources.DataSource = context.DBResources;
}
winforms-scheduler-bind-to-ms-sql-server/CS/SchedulerSQLRuntime/Form1.cs#L65
this.schedulerDataStorage1.Appointments.DataMember = "Appointments";
this.schedulerDataStorage1.Resources.DataSource = DXSchedulerDataset;
this.schedulerDataStorage1.Resources.DataMember = "Resources";
winforms-scheduler-bind-to-custom-objects/CS/CustomObjectsBinding/Form1.cs#L44
CustomResourceCollection.Add(CreateCustomResource(3, "Pak Jang", Color.PeachPuff));
this.schedulerDataStorage1.Resources.DataSource = CustomResourceCollection;
}
winforms-scheduler-resolve-appointment-conflicts/CS/DXApplication1/Form1.cs#L41
schedulerDataStorage1.Resources.DataSource = CustomResourceCollection;
winforms-scheduler-bind-to-xpo/CS/XPO_XtraScheduler_Simple_Example/Form1.cs#L14
schedulerDataStorage1.Appointments.DataSource = xpAppointmentCollection;
schedulerDataStorage1.Resources.DataSource = xpResourceCollection;
winforms-scheduler-linq-to-sql/VB/XtraScheduler_LINQ/Form1.vb#L22
schedulerStorage1.Appointments.DataSource = context.DBAppointments
schedulerStorage1.Resources.DataSource = context.DBResources
End Sub
winforms-scheduler-bind-to-ms-sql-server/VB/SchedulerSQLRuntime/Form1.vb#L68
Me.schedulerDataStorage1.Appointments.DataMember = "Appointments"
Me.schedulerDataStorage1.Resources.DataSource = DXSchedulerDataset
Me.schedulerDataStorage1.Resources.DataMember = "Resources"
winforms-scheduler-bind-to-custom-objects/VB/CustomObjectsBinding/Form1.vb#L47
CustomResourceCollection.Add(CreateCustomResource(3, "Pak Jang", Color.PeachPuff))
SchedulerDataStorage1.Resources.DataSource = CustomResourceCollection
End Sub
winforms-scheduler-resolve-appointment-conflicts/VB/DXApplication1/Form1.vb#L34
mappingsAppointment.Type = "EventType"
schedulerDataStorage1.Resources.DataSource = CustomResourceCollection
schedulerControl1.Start = Date.Now
winforms-scheduler-bind-to-xpo/VB/XPO_XtraScheduler_Simple_Example/Form1.vb#L14
schedulerDataStorage1.Appointments.DataSource = xpAppointmentCollection
schedulerDataStorage1.Resources.DataSource = xpResourceCollection
See Also