Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropdown List display order changes
Message
From
12/08/2005 10:07:00
Patty Solomon
Central Susquehanna Intermediate Unit
Milton, Pennsylvania, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Dropdown List display order changes
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01040542
Message ID:
01040542
Views:
68
My combobox's dropdown list does not display the items in the order that they exist in the DataSet's DataTable.

When creating a dataset for the combo.BindingSource, a blank row is inserted at row 0 into the dataset before it is returned. Using the debugger, I've verified the row is actually inserted at row 0.

However, when the form runs, the blank row appears at the bottom of the dropdown list, not at the top, as expected.

Is there something happening during MMF's DataBinding process that forces the blank row to the bottom of the list?

If so, is there any way to override this behavior? The desired behavior is that the blank item show at the top of the list.

TIA,
Patty
Next
Reply
Map
View

Click here to load this message in the networking platform