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.ValidateNodeCommand Property

Gets or sets a command that validates node values.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public ICommand<NodeValidationArgs> ValidateNodeCommand { get; set; }

#Property Value

Type Description
ICommand<NodeValidationArgs>

A command that validates node values.

#Remarks

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

The GridControl executes a command bound to the ValidateNodeCommand property when the control saves changes to a data source. The save changes process starts when a user focuses another node, or you call the DataViewBase.CommitEditing method.

The Item property returns the data item within the processed node.

You can verify whether the data meet your validation criteria. Use the Result property to specify the validation message.

Refer to the following topic for more information: Row Validation.

Use the ResultAsync property to validate row data asynchronously.

See Also