Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Dropdown List display order changes
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement