I'm trying to follow your dual listbox drag and drop demo. Here is a relevant code:
Here is the exercise class:
The problem I am having is that when I drag and drop or move items from the left list into the right list, the underlying datasource is not updated. And even when I use the reference to the the list boxes themselves, the datasource shows as empty. How do I get at what is currently in a ListBox?
Query: the datasource shows as empty. How do I get at what is currently in a ListBox?
To get updated data source from the listbox, kindly use the GetDataList method of listbox. Please refer the below code snippet and attached sample code.
private void GetData()
var list1_updated_data = _newRuleExercisesListBox.GetDataList();
var list2_updated_data = _newRuleExercisesSelectedListBox.GetDataList();
Please get back to us if you need any further assistance on this.