Skip to main content

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.v24.1.dll

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

Declaration

[DefaultValue("")]
public string DataMember { get; set; }

Property Value

Type Default Description
String String.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