I use DevExpress 2.4 and I have a combobox which is bound to a row in a propertygrid control. I want to disable this combobox for editing it content by keyboard and be able only to choose the value by clicking with the mouse. I read on the internet just to change the DropDownStyle property to DropDownList, instead of DropDown but when I go to the combobox in properties I don't have property DropDownList and only DropDownItemHeight and DropDownRows... So how to disable typing in this combobox?
Open property editor for this GridControl and open repository, now in options of this ComboBox go down to TextEditStyle and choose DisableTextEditor as option.
Just do this: this.comboBoxType.DropDownStyle = ComboBoxStyle.DropDownList;
How about using the LookupEdit control?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With