Click here to Skip to main content
12,700,376 members (35,087 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as

Stats

14K views
3 bookmarked
Posted

Bind Enum data to Dropdown List By Sorting

, 29 Dec 2010 CPOL

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

26 Dec 2010
John Simmons / outlaw programmer
Can't you just call Enum.GetNames(), and then bind to the collection returned by that method?
30 Dec 2010
Xmen Real
here is what I do to iterate through enumpublic static ABC(Type enumType){ foreach (Enum e in Enum.GetValues(enumType)) { int tvalue = Convert.ToInt32(e); string tname = e.ToString(); }}

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

sat_nar
United States United States
No Biography provided

Pro
Pro
| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 29 Dec 2010
Article Copyright 2010 by sat_nar
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid