Back to Devexpress

ValidateNodeEventArgs Class

windowsforms-devexpress-dot-xtratreelist-dd25bbc2.md

latest2.4 KB
Original Source

ValidateNodeEventArgs Class

Provides data for the TreeList.ValidateNode event.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public class ValidateNodeEventArgs :
    NodeEventArgs
vb
Public Class ValidateNodeEventArgs
    Inherits NodeEventArgs

ValidateNodeEventArgs is the data class for the following events:

Remarks

The TreeList.ValidateNode event fires when attempting to move node focus. It enables you to specify whether the currently focused node’s data is valid, and so whether moving focus is permitted.

To determine whether the currently focused node’s data is valid, you will need to access the node’s cell values. Thus, the ValidateNodeEventArgs class enables you to identify the processed node using the inherited NodeEventArgs.Node property. This class introduces the ValidateNodeEventArgs.Valid and ValidateNodeEventArgs.ErrorText properties that specify if a node’s data is valid and define the text displayed within an error message box.

Inheritance

Object EventArgs NodeEventArgs ValidateNodeEventArgs

See Also

ValidateNodeEventArgs Members

ValidateNode

DevExpress.XtraTreeList Namespace