Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListView.AddNewNode(Boolean) Method

Adds a new node to the TreeListView‘s underlying datasource.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public TreeListNode AddNewNode(
    bool showUpdateRowButtons = false
)

#Optional Parameters

Name Type Default Description
showUpdateRowButtons Boolean False

If the Edit Entire Row mode and the New Item Row are enabled, you can set this parameter to true to allow users edit values in the new row before posting this row to the data source.

#Returns

Type Description
TreeListNode

A new node.

#Remarks

Use the AddNewNode method to add a new node to the view’s underlying datasource. The View immediately reflects any changes made to the datasource and focuses the new node.

When a new node is added, the datasource may initialize some values (key fields, for instance). Records can also be initialized by handling the TreeListView.AddingNewNode event.

Refer to the Add and Remove Rows topic for more information.

See Also