开发者

ComboBox Input ,wpf

开发者 https://www.devze.com 2023-02-20 10:29 出处:网络
I have a ComboBox and its items source is an SQL table. I would like that the user will choose the value he likes and if the value is not in the list, he would be able to type th开发者_Go百科e value

I have a ComboBox and its items source is an SQL table.

I would like that the user will choose the value he likes and if the value is not in the list, he would be able to type th开发者_Go百科e value into the ComboBox. Is it possible?

Thanks.


You need to set the IsEditable property of the ComboBox to True. This will allow you to edit the contents as well as select any of the populated items in the combo box.

0

精彩评论

暂无评论...
验证码 换一张
取 消