Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populate a combobox with the fieldnames of a table
Message
De
06/10/2007 17:34:31
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
06/10/2007 13:42:17
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01259126
Message ID:
01259205
Vues:
20
Its fairly easy:
            foreach (DataColumn dc in myTable.Columns)
            { 
                myComboBox.Items.Add(dc.ColumnName.ToString()) 
            }
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform