Back to Devexpress

TreeListView.NodeUpdatedCommand Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-ffe23f9a.md

latest2.1 KB
Original Source

TreeListView.NodeUpdatedCommand Property

Gets or sets a command executed when the GridControl updates the data source with the changes made within the focused node.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ICommand<NodeUpdatedArgs> NodeUpdatedCommand { get; set; }
vb
Public Property NodeUpdatedCommand As ICommand(Of NodeUpdatedArgs)

Property Value

TypeDescription
ICommand<NodeUpdatedArgs>

A command executed when the GridControl updates the data source with the changes made within the focused node.

|

Remarks

Bind a command to the NodeUpdatedCommand property to maintain a clean MVVM pattern. The command works like a NodeUpdated event handler and allows you to process the node update operation in a View Model.

The GridControl validates changes made within the focused node when you try to move focus to another node. You can also invoke the CommitEditing method to validate changes. If all new values are valid, the GridControl updates the data source and calls the bound command.

Refer to the following topic if you want to update a row asynchronously: ResultAsync.

See Also

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace