ListBox用DataSource绑定后,如何增加或删除其中一项???
....
lstBoxAll.DataSource = itemList;
lstBoxAll.DisplayMember ="Text";
lstBoxAll.ValueMember = "Value";
listbox这样绑定后,如何再增加一项或删除一项??
我用lstBoxAll.Items.RemoveAt(1);
提示错误
Cannot modify the Items collection when the DataSource property is set.