Hello,
I have an enum, example:
enum MyEnum
{
My_Value_1,
My_Value_2
}
With :
comboBox1.DataSource = Enum.GetValues(typeof(MyEnum));
I fill the ComboBox Items and with
DataGridViewComboBoxColumn col =
(DataGridViewComboBoxColumn)dataGridView1.Columns[0];
col.DataSource = Enum.GetValues(typeof(EnumNamen));
I can fill a DataBound DataGridViewComboBoxColumn with items.
But now my question: How can I replace the "_" with " " so that I became
items with spaces instead of underscores? And that a databound object still
works
Thanks a lot for your help
Gerrit