ValidateNodeEventArgs Class

Provides data for the TreeList.ValidateNode event.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

public class ValidateNodeEventArgs :
    NodeEventArgs
Public Class ValidateNodeEventArgs
    Inherits NodeEventArgs

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