Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populate a combobox with the fieldnames of a table
Message
From
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:
01259205
Views:
21
Its fairly easy:
            foreach (DataColumn dc in myTable.Columns)
            { 
                myComboBox.Items.Add(dc.ColumnName.ToString()) 
            }
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform