I've got a snippet of code that's throwing up an exception:
"Can't modify the Items collection when the DataSource property is set."
I've tried the resolutions in
http://support.microsoft.com/default...;en-us;Q316568 with no luck,
as well as going through the few results on Google.
For point of reference, my code looks a little like:
m_UserList = m_BrUser.LoadList(False)
lstUsers.Sorted = True
lstUsers.ValueMember = "UserId"
lstUsers.DisplayMember = "DisplayName"
lstUsers.DataSource = m_UserList.Tables("us_Users")
Which occurs after the call to InitializeComponent() in the constructor of
the form.
Any ideas what could be causing this? It's stumped me for the best part of a
day already...