Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to re-bind the combobox?
Message
 
 
To
19/05/2009 14:02:37
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01400729
Message ID:
01400756
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform