会出错:
System.ArgumentException: Can't modify the Items collection when the DataSource property is set.
我想要编辑listBox,然后将修改后的数据回传给数据库,如何操作呢?
...全文
181打赏收藏
ListBox数据绑定以后出现了麻烦,请大家帮忙。
在程序中,ListBox绑定到了一个dataSet之后。 如果 listBox1.Items.Clear() 会出错: System.ArgumentException: Can't modify the Items collection when the DataSource property is set. 我想要编辑listBox,然后将修改后的数据回传给数据库,如何操作呢?