Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enums as Datasources
Message
 
To
26/07/2004 12:17:18
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00927961
Message ID:
00928406
Views:
22
I don't get it. Like someone else noted, you can bind an enum to a datasource like this:
Array values = Enum.GetValues(typeof(Colours));
colourCombo.DataSource = values;
No need for reflection here.

>http://www.codeproject.com/csharp/EnumDataSource.asp
>
>What a brilliant idea. This is really a neat application of reflection...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform