在Windows窗体vb.net中进行绑定时如何将静态值添加到dropdownlist [英] how to add static values to dropdownlist while binding in windows forms vb.net

查看:91
本文介绍了在Windows窗体vb.net中进行绑定时如何将静态值添加到dropdownlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加静态值,例如在将数据绑定到vb.net中Windows窗体中的dropdownlist的第零个索引处时选择

How to add static values for example select at zeroth index while binding data to dropdownlist in windows forms in vb.net

推荐答案

尝试这将有助于完整操作


try this will help full


<asp:DropDownList ID="DropDownList1" runat="server" width="145px">

<asp:ListItem Text="SomeText" Value="SomeValue" Selected="true"></asp:ListItem>

</asp:DropDownList>


这篇关于在Windows窗体vb.net中进行绑定时如何将静态值添加到dropdownlist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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