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[^]

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
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:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910