LookUpEdit.Text Property
Gets the text displayed in the edit box.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
String | The text displayed in the edit box. |
Remarks
Use the Text property to return the text displayed in the edit box. The display text matches the RepositoryItemLookUpEditBase.DisplayMember field value of the row selected in the dropdown.
If the RepositoryItemLookUpEditBase.TextEditStyle property is set to TextEditStyles.DisableTextEditor, a user can modify the display text.
See the RepositoryItemLookUpEdit.SearchMode property to specify how modifying the display text should be interpreted by the editor.
The LookUpEdit class overrides the Text property so that you are not able to change it via code. Assigning a value to Text is not in effect. In addition, you are not able to bind the Text property to a data source field.