Skip to main content

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