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.
有没有办法解决以下问题?
我有一些下拉列表绑定到 SQL Server 中的查找表。由于这些字段中的数据与当前下拉数据不匹配,从系统的早期版本导入的一些旧记录将无法打开。
除了将旧数据添加到查找表(我不想这样做)之外,有没有办法解决这个问题?
我得到了它。笨拙但有效,
当由于数据不再位于下拉列表中而无法打开页面时,我发现了错误,然后:
list.Items.Insert(0, new_thing); list.SelectedIndex = 0;