I have an enum, example:
enum MyEnum
{
My_Value_1,
My_Value_2
}
With :
comboBox1.DataSource = Enum.GetValues(typeof(MyEnum)
Fill the combobox manually and do a string replace on the enum.
Here is exactly what you need to do:
comboBox1.Items.Clear();
MyEnum[] e = (MyEnum[])(Enum.GetValues(typeof(MyEnum)));
for (int i = 0; i < e.Length; i++)
{
comboBox1.Items.Add(e[i].ToString().Replace("_", " "));
}
To set the selected item of the combobox do the following:
comboBox1.SelectedItem = MyEnum.My_Value_2.ToString().Replace("_", " ");