I create a data entry interface and successfully bind columns that have reference tables for their data using DropDownList, so the user selects from pre-configured values.
Now my problem is that I do not want the first value to be selected by default, I need to force the user to select a value from the list to avoid errors when they did not select this field and a default value was assigned.
Is there a more elegant way to do this than adding code to include an empty value at the top of the list after retrieving it from the database and before passing it to the SelectList constructor in the controller class?
jvanderh Jun 02 '09 at 22:33 2009-06-02 22:33
source share