If there are less items in list than the selected index you get error out of range.
Make sure SelectedIndex is within range or deselect with value -1 before update/bind.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.