Custom DropDownList with DataBind and extra option "Please Select"

There is a common requirement to have DropDownList populated from Collection(e.g.DataTable) with extra (usually default) option "Please Select".
I wanted to find a custom control that will allow to specify this extra option and use standard DataSource/DataBind.
I wasn't able to find it in Google, so probably I will write it myself.

Relevant links to consider:An ASP.NET 2.0 AutoComplete DropDownList...  

'Dropdown1' has a SelectedValue which is invalid

MetaBuilders.ComboBox[^]

posted @ Tuesday, October 16, 2007 10:39 AM

Print

Comments on this entry:

# re: Custom DropDownList with DataBind and extra option "Please Select"

Left by Andrew Siemer at 10/17/2007 7:47 AM
Gravatar
Could you not create a control of your own that inherits from the dropdown...with a property of first item message?

Your comment:



 (will not be displayed)


 
 
 
Please add 1 and 8 and type the answer here:
 

Live Comment Preview:

 
«October»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678