D
Dan
I'm databinding my DropDownList to a DataSet. How do I add a dummy record
at the top of the combo box.
In other words, suppose we are dealing with cars I want something like:
<select name="cboCars">
<option value="0">Select a car</option>
<option value="1">Ford Mustang</option>
....
<option value="5">Mitsubishi Eclipse</option>
</select>
How do I get the "Select a car" option at the top, while still databinding
the DropDownList?
If I don't have the dummy record the DropDownList auto selects the first
option as the default, which isn't good for my purpose.
Thanks in advance,
Dan
at the top of the combo box.
In other words, suppose we are dealing with cars I want something like:
<select name="cboCars">
<option value="0">Select a car</option>
<option value="1">Ford Mustang</option>
....
<option value="5">Mitsubishi Eclipse</option>
</select>
How do I get the "Select a car" option at the top, while still databinding
the DropDownList?
If I don't have the dummy record the DropDownList auto selects the first
option as the default, which isn't good for my purpose.
Thanks in advance,
Dan