Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty combo
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00884521
Message ID:
00884676
Views:
6
Hi Bob,

You need to add a blank row to the dropdown after you bind the dropdown to the datasource. Here is an example:
this.DropDownList1.DataBind();
this.DropDownList1.Items.Insert(0,"");
>If I have a combo bound to a collection, how do I tell it that intiall none of those items are 'selected' so for a new record they will show like an empty textbox would.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform