如何在combox的另一个索引中插入项目 [英] How to insert an item in oth index in combox

查看:68
本文介绍了如何在combox的另一个索引中插入项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在combox的第0个索引中插入项目?

How to insert an item in 0th index in combox?

推荐答案

请尝试以下操作...

Please try the following...

comboBox1.Items.Insert(0, objectname);



问候
塞巴斯蒂安(Sebastian)



Regards
Sebastian


嗨kamala,
默认情况下,它将开始使用零索引,否则您可以在下面给出

选择组合框--->转到属性----->项目----->单击添加--->请参阅属性(右侧)->输入内容名称并选中"ISSelected"复选框,然后单击确定".
hi kamala ,
by default it will take zero index onwards , other wise u can give below

select combobox --->goto properties ---->Items ----->click on add --->see the properties(right side) --> give content name and check the checkbox ISSelected -->then click on Ok.



试试这个,
Hi,
Try this,
comboBox1.Items.Insert(0, new ComboBoxItem("Select", string.Empty));




--Amit




--Amit


这篇关于如何在combox的另一个索引中插入项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆