DropDownStyle of bound Combobox is always DropDownList


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I can't seem to get a combo that is bound to have a drop down style other than DropDownList (i.e. only values in list can be selected...no random typing allowed).



This is related to binding. If the combo is unbound, then when the style is set to DropDown, I can type arbitrary values into the combo.



However, if the combo is bound, the style becomes DropDownList (no matter what I set at design time).



I checked the source code (I'm not on the latest beta currently Sad ) and in the BindingEditable property is manipulating the drop down style. I'm thinking it isn't handling the original style correctly and just ends up setting it to drop down list.



The workaround is to set the combo to ignore editing changes and manage that yourself if needed.
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Do you get the same behavior if you set the IgnoreManageReadonlyState to True?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search