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 14:12:29
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
10/10/2007 04:39:41
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:
01260108
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,
>Vi

This msg was a mistake. I meant to send it to the other guy. Sorry.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform