Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty combo
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00884521
Message ID:
00884676
Vues:
8
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform