How to block combobox for text input

I use DevExpress 2.4, and I have a combobox associated with a row in a propertygrid control. I want to disable this combobox to edit its contents using the keyboard and be able to select a value by clicking. I read on the Internet, to change a property DropDownStyleon DropDownListinstead DropDown, but when I go to the properties of the list in the properties, I do not have a property DropDownListonly DropDownItemHeightand DropDownRows... Since disable entry in this field with the list?

+3
source share
8 answers

How about using LookupEdit control?

+2
source

GridControl , ComboBox TextEditStyle DisableTextEditor .

+12

: this.comboBoxType.DropDownStyle = ComboBoxStyle.DropDownList;

+2

DropDownStyle, , Windows.NET Framework DropDowsLists, DevExpress, , - , API .

XtraEditors , , , , , , , , main control, .

+1

.

, . , .

BTW, TextEditStyle DisableTextEditor.

!

0

VB.NET :

    ComboBoxEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor 

, #.NET.

0

: ComboBox

:

DropDownListName.DropDownStyle = ComboBoxStyle.DropDownList;

Visual Studio:

(DropDownList: DropDownList)

, .

0

C # This blocks Combobox manual entry and displays only comboboxlist items

this.yourcomboBoxname.DropDownStyle = ComboBoxStyle.DropDownList;
0
source

All Articles