Back to Devexpress

TreeList.DataMember Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-3328a3e3.md

latest2.0 KB
Original Source

TreeList.DataMember Property

Gets or sets a specific list in a data source whose data is displayed by the TreeList control.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

A string value specifying a list in a data source.

|

Remarks

Use the DataMember property if a value specified by the TreeList.DataSource property contains multiple sources of data. For instance, if the TreeList.DataSource property value is a DataSet containing several tables, you must assign a table name to the DataMember property.

If the TreeList.DataSource property is set to a value representing a single source of data, leave the DataMember property empty.

See Also

DataSource

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace