Skip to main content
A newer version of this page is available. .
Tab

ValidationEventArgs.Value Property

Gets or sets the currently validated value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

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 snippets (auto-collected from DevExpress Examples) contain references 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