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