"Lose your memory in a thousand places, disappearing in a sea of faces, always alone, I live the only way I know" (John Miles)
 

Entries for the month December 2007

Sorting a DropDownList with Enum values

12/28/2007 10:44:54 AM UTC

The past half hour I was looking at a solution for this problem. I have a DropDownList that is populated with values from an Enumerator. I just wanted to have the list sorted to have a better representation of it. After fruitless search on the net, I came on this article of Trent Miesner. The solution is so simple and obvious that I had to share it with others.