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

Click here to load this message in the networking platform