Skip to main content

TreeListNodes.Add(Object) Method

Appends a new node to the end of the TreeListNodes collection and initializes the node with the specified data.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public TreeListNode Add(
    object nodeData
)

Parameters

Name Type Description
nodeData Object

An array of values or a DataRow object, used to initialize the created node’s cells.

Returns

Type Description
TreeListNode

The new TreeListNode object.

Remarks

The nodeData parameter specifies data for the columns of the node that is to be created. This parameter value can be an array of values or a DataRow object. The number and order of items in the array/DataRow object must match the number and order of Tree List columns.

To learn more, see Nodes.

See Also