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)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345