Skip to main content

GridLevelNodeCollection.AddRange(GridLevelNode[]) Method

Adds an array of nodes to the collection.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

public void AddRange(
    GridLevelNode[] nodes
)

Parameters

Name Type Description
nodes GridLevelNode[]

An array of GridLevelNode objects to add to the collection.

Remarks

This method appends the specified nodes to the collection. The order of the nodes in the collection determines the order in which the corresponding master-detail relationships will be displayed in the XtraGrid. To add a node at a specific position use the GridLevelNodeCollection.Insert method.

The AddRange method doesn’t insert a node if this node already belongs to the collection or if another node belongs to the collection that refers to the same relationship as the array’s node.

See Also