ComboBox entries at runtime

I have a Combobox, which I populate from a datasource.However I would like the user to be able to key in new text, which would then be saved as a new entry in the dropdown
Any Ideas please....
[203 byte] By [DavidK] at [2007-12-16]
# 1
One approach would be to overlay the textbox portion of the dropdown with an actual textbox. In code, then, you'd need to keep the two in sync by copying the selected item in the dropdown to the textbox when the selection changes and adding and entered text to the listitems in the dorpdown.

You didn't mention whether you were doing ASP.Net or winforms. I'm assuming you're talking about web forms. If Winforms, then have a look at the DropDownStyle property of the drop down control.

Mitch Gordon
http://www.enterpriseetc.com

ghostwrtrone at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
Got Sorted - thanks for your help
DavidK at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified