The requested page is not available for the requested platform. You are viewing the content for Default platform.

ValidateObjectEventArgs Class

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public class ValidateObjectEventArgs :
    ObjectManipulatingEventArgs
Public Class ValidateObjectEventArgs
    Inherits 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