开发者

Combo box Default Text

开发者 https://www.devze.com 2023-03-24 15:47 出处:网络
I have a combo box that shows data from a (list) datasource. I want to show a text in the combo box as the first of the items, show开发者_JAVA技巧ing\"-ALL-\". How can I do this?

I have a combo box that shows data from a (list) datasource. I want to show a text in the combo box as the first of the items, show开发者_JAVA技巧ing "-ALL-". How can I do this?

I am working on windows form applicaiton.


Try the following:

combo1.Text="All"

0

精彩评论

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