GridLevelNodeCollection.Add(GridLevelNode) Method
Adds the specified node to the collection.
Namespace: DevExpress.XtraGrid
Assembly: DevExpress.XtraGrid.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
node | GridLevelNode | A GridLevelNode object representing the node to add to the collection. |
Remarks
This method appends the specified node 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.
If the collection already contains the specified node or contains a node which refers to the same relationship as the specified node the Add method does nothing.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(GridLevelNode) method.
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.