Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListNodeValidationEventArgs Class

Provides data for the TreeListView.ValidateNode event.

Namespace: DevExpress.Xpf.Grid.TreeList

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public class TreeListNodeValidationEventArgs :
    GridRowValidationEventArgs,
    IDataRowEventArgs

#Remarks

Node validation is performed within the TreeListNodeValidationEventArgs event handler. This event is automatically fired when a node is about to lose focus.

The processed node is returned by the event parameter’s TreeListNodeValidationEventArgs.Node property. After cell values have been obtained, you can verify whether these values meet your validity criteria. If the node fails validation, set the event’s ValidationEventArgs.IsValid parameter to false. Otherwise, leave this parameter set to true.

See Also