Skip to main content
.NET 8.0+

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