BaseContainerValidateEditorEventArgs.Value Property
In This Article
Gets or sets the value being validated.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#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.
See Also