You have set the SelectedValue
to -1
which must exist. Don't confuse it with the SelectedIndex
where -1
indicates that nothing should be selected.
So i assume that you actually want:
' ...
modelDD.Items.Clear()
modelDD.SelectedIndex = -1 ' instead of SelectedValue = -1
' ...