Article ID: 925730 - Last Review: December 3, 2007 - Revision: 1.1 BUG: A ComboBox control does not display any items in the .NET Framework 2.0SYMPTOMSWhen you bind a ComboBox control to an array, the ComboBox control does not display any items. Additionally, the Microsoft .NET Framework 2.0 does not throw an exception as expected. This problem occurs if the following conditions are true:
CAUSEThis problem occurs because of a bug in the .NET Framework 2.0. You cannot sort a ComboBox control that uses an array as a data source. WORKAROUNDTo work around this problem, sort the array first. Then bind the array to the ComboBox control. STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONWhen you run the following code, you experience the problem that is described in the "Symptoms" section.
| Article Translations
|
Back to the top
