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:41:01
 
 
À
06/10/2007 20:46:14
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:
01259934
Vues:
20
Hi Bonnie,
>Yeah, Viv, it works. I just tried it.

Thanks for confirming (I should try not to be so lazy :-} )
Best,
Viv
>
>Ernst, try this:
>
>BindingSource bs = new BindingSource();
>bs.DataSource = this.MyTable.Columns;
>this.MyCombo.DataSource = bs;
>
>
>~~Bonnie
>
>
>
>>Hi,
>>
>>I would think that since the DataColumns collection supports IEnumerable you should be able to bind to it using a BindingSource. Haven't tried it tho'
>>HTH,
>>Viv
>>
>>>how do i populate a combobox with the fieldnames of a table or DB Object?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform