Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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