Back to Devexpress

ResourceDataStorage.DataSource Property

windowsforms-devexpress-dot-xtrascheduler-dot-resourcedatastorage-bdb3984f.md

latest5.9 KB
Original Source

ResourceDataStorage.DataSource Property

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

Declaration

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

Property Value

TypeDefaultDescription
Objectnull

An Object that is the storage’s data source.

|

Remarks

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

csharp
this.schedulerStorage1.Appointments.DataSource = context.DBAppointments;
    this.schedulerStorage1.Resources.DataSource = context.DBResources;
}

winforms-scheduler-bind-to-ms-sql-server/CS/SchedulerSQLRuntime/Form1.cs#L65

csharp
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

csharp
CustomResourceCollection.Add(CreateCustomResource(3, "Pak Jang", Color.PeachPuff));
    this.schedulerDataStorage1.Resources.DataSource = CustomResourceCollection;
}

winforms-scheduler-resolve-appointment-conflicts/CS/DXApplication1/Form1.cs#L41

csharp
schedulerDataStorage1.Resources.DataSource = CustomResourceCollection;

winforms-scheduler-bind-to-xpo/CS/XPO_XtraScheduler_Simple_Example/Form1.cs#L14

csharp
schedulerDataStorage1.Appointments.DataSource = xpAppointmentCollection;
schedulerDataStorage1.Resources.DataSource = xpResourceCollection;

winforms-scheduler-linq-to-sql/VB/XtraScheduler_LINQ/Form1.vb#L22

vb
schedulerStorage1.Appointments.DataSource = context.DBAppointments
    schedulerStorage1.Resources.DataSource = context.DBResources
End Sub

winforms-scheduler-bind-to-ms-sql-server/VB/SchedulerSQLRuntime/Form1.vb#L68

vb
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

vb
CustomResourceCollection.Add(CreateCustomResource(3, "Pak Jang", Color.PeachPuff))
    SchedulerDataStorage1.Resources.DataSource = CustomResourceCollection
End Sub

winforms-scheduler-resolve-appointment-conflicts/VB/DXApplication1/Form1.vb#L34

vb
mappingsAppointment.Type = "EventType"
schedulerDataStorage1.Resources.DataSource = CustomResourceCollection
schedulerControl1.Start = Date.Now

winforms-scheduler-bind-to-xpo/VB/XPO_XtraScheduler_Simple_Example/Form1.vb#L14

vb
schedulerDataStorage1.Appointments.DataSource = xpAppointmentCollection
schedulerDataStorage1.Resources.DataSource = xpResourceCollection

See Also

ResourceDataStorage Class

ResourceDataStorage Members

DevExpress.XtraScheduler Namespace