Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populate a combobox with the fieldnames of a table
Message
From
10/10/2007 04:39:41
 
 
To
06/10/2007 17:34:31
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01259126
Message ID:
01259933
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform