windowsforms-devexpress-dot-xtratreelist-dot-treelist-3328a3e3.md
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
[DefaultValue("")]
public string DataMember { get; set; }
<DefaultValue("")>
Public Property DataMember As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string value specifying a list in a data source.
|
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