Back to Devexpress

ResourceDataStorage.DataMember Property

windowsforms-devexpress-dot-xtrascheduler-dot-resourcedatastorage-26d1312f.md

latest3.0 KB
Original Source

ResourceDataStorage.DataMember Property

Gets or sets the data source member which supplies data to the storage.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue("")]
[DXCategory("Data")]
public string DataMember { get; set; }
vb
<DefaultValue("")>
<DXCategory("Data")>
Public Property DataMember As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value representing the data source member.

|

Remarks

This property can be used when the DataSource property refers to a dataset which contains several data tables. The DataMember property should specify the desired table’s name in this case.

If the DataSource property refers to a data table, data view or any custom created data source object, the DataMember property should not be used.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataMember 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-bind-to-ms-sql-server/CS/SchedulerSQLRuntime/Form1.cs#L66

csharp
this.schedulerDataStorage1.Resources.DataSource = DXSchedulerDataset;
    this.schedulerDataStorage1.Resources.DataMember = "Resources";
}

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

vb
Me.schedulerDataStorage1.Resources.DataSource = DXSchedulerDataset
    Me.schedulerDataStorage1.Resources.DataMember = "Resources"
End Sub

See Also

ResourceDataStorage Class

ResourceDataStorage Members

DevExpress.XtraScheduler Namespace