Nathan,
As Han suggests:
Have you tried something like:
public enum SomeEnum
{
Value1 = 1,
Value2 = 2
}
Array list = Enum.GetValues(typeof(SomeEnum));
Then bind the above list variable?
Some people bind to the names, via Enum.GetNames, as opposed to the
values. I prefer using the values as above in Windows Forms as the
ComboBox.SelectedValue is the enum value rather then a string... In Web
Forms I don't see an advantage to using the values, but then again I have
not bound to enums in web forms...
Seeing as Enum.GetValues returns an Array, and Array implements IList you
can simply bind to the array that Enum.GetValues returns!
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"Nathan" <Na****@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
| I'd like to use an enumeration as a datasource for a drop-down box. Is
there
| a way to do this?