Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们可以在特定位置放置/保留下拉列表项吗?例如,我想将下拉列表绑定到数据源,然后添加放置在下拉列表中特定位置的新项目。这怎么可能。
您可以使用插入方法。
dropDownList.Items.Insert(index, new ListItem("Default Panel", "0"));