Say I have the following enum
public enum MyMode { A = 1, B = 2, C = 3, D = 4 };
and I want to use this enumeration as a list of values inside a combobox, I tried using
cmbMyMode.Items.Add(Enum.GetValues(typeof(MyMode )));
but i get the following
MyMode[] Array
I need to display A, B, C, D, and is it possible to use a custom string instead of A, B, C, D
thanks
source share