BaseContainerValidateEditorEventArgs.Value Property
Gets or sets the value being validated.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
Object | An object representing the validated editor’s value. |
Remarks
Use this property to obtain the editor’s value. If the value is valid, leave the BaseContainerValidateEditorEventArgs.Valid parameter set to true. Otherwise, you can choose between the following alternatives:
- set the BaseContainerValidateEditorEventArgs.Valid parameter to false so that the editor remains focused thus forcing the end-user to correct the value;
- correct the value entered manually. To do so, you should assign the desired value to the Value property. If leaving the BaseContainerValidateEditorEventArgs.Valid property set to true, the focus will move and the cell will contain the new value.
Related GitHub Examples
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.