Back to Devexpress

ValidateObjectEventArgs Class

expressappframework-devexpress-dot-expressapp-97a26829.md

latest2.6 KB
Original Source

ValidateObjectEventArgs Class

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

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public class ValidateObjectEventArgs :
    ObjectManipulatingEventArgs
vb
Public Class ValidateObjectEventArgs
    Inherits ObjectManipulatingEventArgs

ValidateObjectEventArgs is the data class for the following events:

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

Object EventArgs ObjectManipulatingEventArgs ValidateObjectEventArgs

See Also

ValidateObjectEventArgs Members

DevExpress.ExpressApp Namespace