Hi all,
I have a data binded combo box used to display a list of agent's name, also
I have the ValueMember populated with agent's key.
And there's a listview to show a list of roster, which including a column
stores agent's key.
After a user double click on the listview, I want the combo box automaticlly
select the agent's name, so I have the following line of code:
cbxEditAgent.SelectedValue = lvwRoster.SelectedItems(0).SubItems(16).Text
For some reason, it gives the following error on some of the records:
Specified argument was out of range of valid values.
Parameter name :'2147483648' is not a valid value for 'index'
At the moment there're only 4 agents in the combo box
I've checked that the selected agent is already populated in the combo box
with the right agent's key.
It seems that it only happend to some of the records, however, excpet the
Key is different between them, everything is the same. I also tried to
create a new combo box, but still get the error, anyone can help?
Thanks!
Kay