Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to re-bind the combobox?
Message
 
 
À
19/05/2009 14:02:37
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01400729
Message ID:
01400756
Vues:
29
>I think you're missing a this._inventoryList.Clear() before the foreach loop. Try also resetting cboItems.DataSource to null before the foreach loop.
>
>>The first time the selected item is 'Select Category', but then it could be any category. However, it seems like I can only select category once to get the Items displayed correctly - every time I select anyhing else it remains the same - it should clear the Items combo value and allow me to select items for the selected category - this part I can not get to work as hard as I already tried.
>>
>>I'll move the handler to the private method - good point.

Setting DataSource to null did the trick, thanks, I was close, but could not figure this out on my own.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform