Tab

ASPxTreeView.NameField Property

Gets or sets the data source field which provides node unique identifier names.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

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

Property Value

Type Default Description
String

String.Empty

A string value that specifies the name of the data source field which contains node unique identifier names.

Remarks

The NameField property is in effect if the ASPxTreeView control is bound to a data source.

Use the NameField property to specify the bound data source’s data field (or an xml element’s attribute) which stores unique identifier names of ASPxTreeView nodes. The NameField property maps the TreeViewNode.Name properties of TreeViewNode objects to the specified data field’s values.

If the NameField property of a data bound ASPxTreeView control is not defined, the control can automatically obtain node unique identifiers from a data field whose name is “Name” (which is equal to the TreeViewNode.Name property’s name).

See Also