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

BaseContainerValidateEditorEventArgs.Valid Property

Gets or sets whether the value is valid.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public bool Valid { get; set; }

Property Value

Type Description
Boolean

true to indicate that the value is valid; otherwise false.

Remarks

Use the Valid property to specify whether the value meets your validity criteria. Set the property to false if the value is not valid and therefore should not be saved to the data source. If you set the property to true, the container control will try to save the value to the data source.

If the Valid property value is set to false, end-users are not allowed to move focus from the cell being edited.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Valid 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