Skip to main content

ASPxTreeList.ParentFieldName Property

Gets or sets the data source field which contains parent node values.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll

Declaration

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

Property Value

Type Default Description
String String.Empty

A String value that specifies the parent field name.

Remarks

The data source you bind to the ASPxTreeList control should contain the following fields:

  • A Key field - a field that specifies a unique key value for each node. Assign the name of this field to the KeyFieldName property.

  • A Parent field - a field that specifies the key value of the parent node for each node. Assign the name of this field to the ParentFieldName property.

The data types of the Key and Parent fields must be the same.

Important

When the ASPxTreeList control is bound to a hierarchical data source (for instance, XmlDataSource), the KeyFieldName and ParentFieldName properties are not in effect.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ParentFieldName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also