Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Thanks for responding, Kevin.
I currently do not use DataViews to sort the data. Instead, InsertAt(dr,0) is used to force the blank row to the beginning of the datatable.
Using the Debugger, I've walked thru the code that adds the blank row and it is inserting it at the beginning of the file.
When data binding is done by manually setting DataSource, DataMember, ValueMember and DisplayMember plus a call to combo.DataBindings.Add(), the blank row appears at the top of the list. But when the BindingSource... and BindingValueSource... properties are set, the blank row appears at the bottom of the list.
It's good to know MMF binding isn't resorting the dropdown list information.
Is there anything odd about the InsertAt() that may be causing this?
Thanks -
Patty
Précédent
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