TreeListView.ValidateNodeCommand Property
Gets or sets a command that validates node values.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v21.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
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.