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 14:12:29
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:
01260108
Views:
23
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform