Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
AddBlankEntry of dropdownlist duplicates data
Versions des environnements
Network:
Windows 2008 Server
I noticed when I set the AddBlankEntry property to true and bind my business object to the control all the data in the dropdownlist control is duplicated. For instance if I have 3 items in the dropdownlist with the AddBlankEntry set to true I get 6 items. When I set it to false, then the data looks fine. I stepped through the code and the business object does have the correct number of elements, so it appears that the dropdowlist is reading the data into the dropdownlist fromt he business object twice.
I would like to have the blank entry in the dropdownlist. Does anyone know of a fix or a work around?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement