There are 1 entries for the tag DropDownList
Enum List DropDown Control

I've been wanting to try this concept out for awhile, and I finally had a reasonable opportunity.  The idea was to slap a System.ComponentModel.Description attribute onto each field of an Enum, and then bind a dropdown list directly to the Enum. I got it working and the code is pretty concise.  Please excuse the fact that I'm working in VB for this one; it's my DotNetNuke project, and I was already working in VB to edit some modules.  The code would be even prettier in C# I imagine. First, let's decorate an enum. Import System.ComponentModel here. ...

posted @ Sunday, January 27, 2008 5:29 AM | Feedback (7)