Hi all!
In my Windows Forms Application (C# 2005), I am using ListBox but it have a problem when I remove item.
listBox.Items.RemoveAt(1); ---> Items collection cannot be modified when the DataSource property is set.
Note: It have just appeared when I used listbox.DataSource = dataTable;
If I dont use DataSource --> Everything is OK
For(int i=0; i<10; i++)
listbox.item.Add(i.ToString());
listBox.Items.RemoveAt(1); ---> OK
Thanks in Adv