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

RepositoryItemGridLookUpEdit.TextEditStyle Property

Gets or sets a value that specifies whether users can type in the lookup’s text box.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public override TextEditStyles TextEditStyle { get; set; }

#Property Value

Type Description
TextEditStyles

A TextEditStyles enumeration value.

Available values:

Name Description
Standard

A button editor works in its normal way. Editing and selecting text is allowed.

ButtonEdit_TextEditStyle_Standard

HideTextEditor

The text editing region is not visible and the editor displays only buttons contained in the current button editor. If no buttons can be displayed (for instance because of setting the EditorButton.Visible property to False), the editor displays an empty region in this case.

ButtonEdit_TextEditStyle_Hidetexteditor

DisableTextEditor

A button editor is displayed in its normal way. However, editing and selecting text is not allowed. If you want to enable a user to select text but disable text modifications, you can set the text editing style to Standard and set the RepositoryItem.ReadOnly property to true.

ButtonEdit_TextEditStyle_Disable

#Remarks

Set the TextEditStyle property to TextEditStyles.Standard to allow users to type in the text box. Handle the ProcessNewValue event to parse entered values and add new records to the lookup’s data source.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TextEditStyle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also