Skip to main content

TextEditSettings.ValidateOnTextInput Property

Gets or sets whether the edit value should be validated while typing within the editor’s text box. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v23.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool ValidateOnTextInput { get; set; }

Property Value

Type Default Description
Boolean true

true to validate the edit value while a user types text in the editor’s text box; otherwise, false.

Remarks

If the ValidateOnTextInput property is set to false, the WPF validation mechanism is used. In this instance, to avoid invalid values from posting to a data source, the BaseEdit.EditValue, TextEditBase.Text, and BaseEdit.DisplayText properties are synchronized with the text entered by the user only after this text is validated.

The DataViewBase.EnableImmediatePosting property has no effect on a column if this column editor’s ValidateOnTextInput property is set to false.

See Also