Skip to main content
.NET 8.0+

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

ValidateObjectEventArgs Class

Represents arguments passed to the ListView.ValidateObject and ListEditor.ValidateObject events.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public class ValidateObjectEventArgs :
    ObjectManipulatingEventArgs

#Remarks

The ValidateObject event occurs when a row must be validated. You can use the ValidateObject event to perform custom validation of a List Editor‘s rows. The ObjectManipulatingEventArgs.Object parameter specifies the object that is being checked. The ValidateObjectEventArgs.Valid parameter indicates whether the object is valid or not. If you need to perform custom validation, handle the ValidateObject event, and check the Object. If it is not valid, set the Valid parameter to false, and the ValidateObjectEventArgs.ErrorText parameter to the message that must be displayed in a UI. This will prevent a user from changing focus from the row until the entered data is corrected.

#Inheritance

See Also