ListBox DataSet Urgent Problem
I have two ListBoxes in my VB.Net Form.Each ListBox is connected to a DataSet.
Between ListBoxes there are two Buttons .. You Know "<<" And ">>". I transfer data from ListBox to another by the following code:
1. Get DataViiew of First ListBox . Then I Remove From It the Specific Item.
2. Then Get a DataSet of the Deleted Changes in the First DataSet : Ds.getChanges(DataRowState.Deleted)
3. Merge the Second DataSet of the Second ListBox to the Deleted Items DataSet..
DS2.Merge(DataSet )
All those Actions really Happen. It does transfer the item from one listbox to another..But it doesn't delete it from the First ListBox..
When I try to delete an item from the ListBox..
It Gives me an Error: That The ListBox Cannot Be Modified .. while the ListBox.DataSource is Set..
If I set the ListBox.DataSource = Nothing to be able to change [delete] the item in the ListBox .. it removes all the items in the ListBox...How Could I delete the Items in the First ListBox that have been transferred to the other ListBox?
How Could I delete the Items in the First ListBox that have been transferred to the other ListBox?
Please It is a Very Fatal Problem For ME... I searched alot for an answer but couldn't find one.. Hope u can help me