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?
DevExpress 2.4
DropDownStyle
DropDownList
DropDown
DropDownItemHeight
DropDownRows
How about using LookupEdit control?
GridControl , ComboBox TextEditStyle DisableTextEditor .
GridControl
ComboBox
TextEditStyle
DisableTextEditor
: this.comboBoxType.DropDownStyle = ComboBoxStyle.DropDownList;
DropDownStyle, , Windows.NET Framework DropDowsLists, DevExpress, , - , API .
XtraEditors , , , , , , , , main control, .
.
→ →
, . , .
BTW, TextEditStyle DisableTextEditor.
!
VB.NET :
ComboBoxEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor
, #.NET.
: ComboBox
:
DropDownListName.DropDownStyle = ComboBoxStyle.DropDownList;
Visual Studio:
(DropDownList: DropDownList)
, .
C # This blocks Combobox manual entry and displays only comboboxlist items
this.yourcomboBoxname.DropDownStyle = ComboBoxStyle.DropDownList;