General information
Category:
The Mere Mortals .NET Framework
Title:
Dropdown List display order changes
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only