Click here to Skip to main content
11,629,393 members (65,825 online)
Click here to Skip to main content

Tagged as

Bind Enum data to Dropdown List By Sorting

, 30 Dec 2010 CPOL 2.3K 1
Rate this:
Please Sign up or sign in to vote.
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(); }}
here is what I do to iterate through enum


public 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

Xmen WK
CEO
India India
No Biography provided

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150723.1 | Last Updated 30 Dec 2010
Article Copyright 2010 by Xmen WK
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid