Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropdown List display order changes
Message
De
12/08/2005 10:07:00
Patty Solomon
Central Susquehanna Intermediate Unit
Milton, Pennsylvanie, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Dropdown List display order changes
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01040542
Message ID:
01040542
Vues:
66
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform