J John A Grandy Nov 7, 2006 #1 Is there a way to quickly bind/populate a dropdown list with an enum ?
V VJ Nov 8, 2006 #2 comboBox1.DataSource = Enum.GetNames(typeof(MyEnum)); you can bind arraylists to a combox box, but can't use the ValueMemeber or other related properties that you can when you bind a datatable Vijay
comboBox1.DataSource = Enum.GetNames(typeof(MyEnum)); you can bind arraylists to a combox box, but can't use the ValueMemeber or other related properties that you can when you bind a datatable Vijay
M Marc Gravell Nov 8, 2006 #3 It may be better to use .GetValues; the text should appear the same, but it means that SelectedItem should return the enum rather than a string. Marc
It may be better to use .GetValues; the text should appear the same, but it means that SelectedItem should return the enum rather than a string. Marc