M Mike P Apr 22, 2010 #1 Is it possible to set the last item in a DropDownList as the default, and if so how?
J Jeff Johnson Apr 22, 2010 #2 Is it possible to set the last item in a DropDownList as the default, and if so how? Click to expand... There is no such thing as a "default" item in a drop down list. If you simply want to make the last item in the list the SELECTED item, then do myListBox.SelectedIndex = myListBox.Items.Count - 1; This assumes you are using a non-data-bound list. I can't help you with data binding as I virtually never use it.
Is it possible to set the last item in a DropDownList as the default, and if so how? Click to expand... There is no such thing as a "default" item in a drop down list. If you simply want to make the last item in the list the SELECTED item, then do myListBox.SelectedIndex = myListBox.Items.Count - 1; This assumes you are using a non-data-bound list. I can't help you with data binding as I virtually never use it.