Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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