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

LookUpEdit.IsDisplayTextValid Property

Gets whether the text in the edit box matches the RepositoryItemLookUpEditBase.DisplayMember field value of any row in the dropdown. This property is for internal use.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public bool IsDisplayTextValid { get; }

#Property Value

Type Description
Boolean

true if the text in the edit box matches the RepositoryItemLookUpEditBase.DisplayMember field value of any row in the dropdown; otherwise, false.

#Remarks

When the incremental filtering or automatic completion feature is enabled, the editor allows you to select rows from the dropdown by entering them within the edit box. When changing the display text, the editor searches for the record whose RepositoryItemLookUpEditBase.DisplayMember field value starts with the entered characters. If such record is found, the editor completes the text. The IsDisplayTextValid property returns true in this instance. If a match was not found, the property returns false thus indicating that the text does not correspond to any row.

See RepositoryItemLookUpEdit.SearchMode to enable incremental filtering or the automatic completion feature.

You rarely need to use the property in your code. IsDisplayTextValid is mostly used internally.

See Also