Skip to main content
Tab

ValidationEventArgs.Value Property

Gets or sets the currently validated value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public object Value { get; set; }

Property Value

Type Description
Object

A Object representing the validated value.

Remarks

You can analyze the Value property to provide custom-written server-side validation of an end users input. In an event handler, test this value against any required condition(s) to check whether it’s valid.

If the entered value is not valid, you can set the ValidationEventArgs.IsValid property to false. In this case, the value will not be accepted by the validated editor. Otherwise, you may correct the entered value manually by setting the Value property and leaving the ValidationEventArgs.IsValid value set to true. In this case, the corrected value will be written to the editor being validated.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Value property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also