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

TreeListInvalidNodeExceptionEventArgs Class

Provides data for the TreeListView.InvalidNodeException event.

Namespace: DevExpress.Xpf.Grid.TreeList

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public class TreeListInvalidNodeExceptionEventArgs :
    TreeListNodeEventArgs,
    IInvalidRowExceptionEventArgs

#Remarks

Node validation is performed within the TreeListView.ValidateNode event handler, when a node is about to lose focus. The TreeListView.InvalidNodeException event allows you to override the default error presentation. This event occurs after the TreeListView.ValidateNode event (provided that the focused node’s validation has failed).

Use the event parameter’s TreeListInvalidNodeExceptionEventArgs.ExceptionMode property, to specify the action performed in response to entering an invalid value. You can display a message box with an error description, suppress any action, throw an exception or discard new data and revert to an old value.

To learn more, see Row Validation.

#Inheritance

Object
EventArgs
RoutedEventArgs
TreeListNodeEventArgs
TreeListInvalidNodeExceptionEventArgs
See Also