Back to Devexpress

DataLayoutControl.DataMember Property

windowsforms-devexpress-dot-xtradatalayout-dot-datalayoutcontrol-093bb42f.md

latest2.0 KB
Original Source

DataLayoutControl.DataMember Property

Gets or sets the data source member which supplies data to the DataLayoutControl‘s editors.

Namespace : DevExpress.XtraDataLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

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 is used when the DataLayoutControl.DataSource property refers to a dataset which contains several data tables. In this instance, the DataMember property must specify the desired table’s name.

You can also use the DataMember to bind the Data Layout Control to a collection property of an object assigned to the DataLayoutControl.DataSource property.

See Also

DataSource

DataLayoutControl Class

DataLayoutControl Members

DevExpress.XtraDataLayout Namespace