Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populate a combobox with the fieldnames of a table
Message
De
10/10/2007 04:39:41
 
 
À
06/10/2007 17:34:31
John Baird
Coatesville, Pennsylvanie, États-Unis
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:
01259933
Vues:
24
Hi,

>Its fairly easy:
>
>
>            foreach (DataColumn dc in myTable.Columns)
>            {
>                myComboBox.Items.Add(dc.ColumnName.ToString())
>            }
>
I know. I just thought that a BindingSource would give a more flexible (and two way) binding.
Best,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform