An “An unhandled exception of type ‘System.ArgumentException’ occurred” error occurs when you set the Sorted property to True
Symptoms
When you set the Sorted property of a ListBox control to True after you bind it to a datasource, you may receive the following exception:
An unhandled exception of type ‘System.ArgumentException’ occurred in system.windows.forms.dll.
Additional information: Can’t modify the Items collection when the DataSource property is set.
Resolution
To resolve this issue, set the Sorted property before you bind the ListBox to a datasource.
