Windows Develop Bookmark and Share   
 index > Windows Forms General > ComboBox Sorting Bug
 

ComboBox Sorting Bug

I don't know if this has been adressed here already, but I didn't find a thread about it.

When you bound a Combobox to a DataTable and set combobox  sort property to true, the displaytext's are sorted but the values are not and this messes everything up. I think this is a big big bug.

Sorry for my bad english.
MigrationUser 1  Thursday, July 17, 2003 3:08 PM
If you're sorted, it's not really supposed to let you bind (and vice-versa).  Instead, you should bind to a DataView and sort the DataView.

I've put in a bug to look at this in a future release, but it may well not be fixed (many types of lists, like Arrays, don't allow sorting through a generic "I'm a list that can be sorted" mechanism, so you'd have to gather a huge (and incomplete) list of "_this_ kind of list is sorted _this_ way").
MigrationUser 1  Friday, August 22, 2003 6:22 PM

You can use google to search for other answers

Custom Search

More Threads

• How can set font of a Control, programmatically ?
• Public Overloads ReadOnly Property Controls() As Control.ControlCollection
• How to show intermediate form while processing...
• Datagrid Events?
• Getting the State of a Mouse Button
• How to get Property attributes dynamically.
• KeyDown is firing twice
• Bug when scrolling the contents of a treeview component (visualization glitches)
• Controls move differently when scroll bars appear
• Restricting window button from wrapping its text/caption