All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeListView.ValidateNodeCommand Property

Gets or sets a command that validates node values.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v21.1.dll

Declaration

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

Property Value

Type Description
DevExpress.Mvvm.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 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.

You can also invoke the CommitEditing method to validate changes.

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

Use the ResultAsync property to validate row data asynchronously.

See Also