RepositoryItemTextEdit.ValidateOnEnterKey Property
Gets or sets whether to raise the RepositoryItem.Validating event on pressing the ENTER key.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v22.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool ValidateOnEnterKey { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true to raise the RepositoryItem.Validating event on pressing the ENTER key; otherwise, false. |
Remarks
Set the editor’s CausesValidation property to true
to enable input validation (and raise the RepositoryItem.Validating event). If the ValidateOnEnterKey
property is set to false
, validation occurs only when the focus moves to another control.
Note
Popup (dropdown) editors raise the Validating
event on pressing the ENTER key if their edit box is focused. A popup editor does not raise the Validating
event when the ENTER key is pressed if the focus is in the dropdown.