Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox Question
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01352049
Message ID:
01352068
Views:
29
I moved the code from the Load to the Constructor after the Init code, and now it all works fine.


>>
>>That's exactly the problem - Items.Count is zero. The combo is loaded in the form's Load. The SelectedIndex is being set in a Setup method called later.
>
>The Items collection must be getting cleared somehow between those two points - the syntax you showed definitely will work. Are you doing any other kind of data binding to this control?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform