Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Meta Data within a DataSet?
Message
From
08/08/2003 13:51:55
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00818331
Message ID:
00818346
Views:
20
This message has been marked as the solution to the initial question of the thread.
Stephen,

Are you saying you're trying to populate a ComboBox's values with the names of columns from a given DataTable?

If so, how about:
foreach (DataColumn dc in YourDataTable.Columns)
{
   YourCombo.Items.Add(dc.ColumnName);
}
---J

>I need to populate a Global change form. I have datasets for the existing pages i have done. I was wondering if there was an easy way to populate a dropdown on the columns contained within a table?
>
>mydataset.Tables.Contains(1). isn't doing it. I'm sure is easy I'm just going about it the wrong way.
>
>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform