2
votes

I have a dll that has a class called Series. This class has a field which is an enumeration of DataTypes. I am binding the datagrid to a list of objects of this class, and I am able to display the enumeration values in a combobox fashion However, the values' names don't make a lot of sense. For example, I want to display 'prc' as 'price' and still represent the correct object value.

this is what I currently do

            this.seriesDataTypeColumn.Items.AddRange(new object[] {
        MuDBLayer.DataType.mv,
        MuDBLayer.DataType.vol,
        MuDBLayer.DataType.num,
        MuDBLayer.DataType.prc,
        MuDBLayer.DataType.Composite});

mv, vol, num and prc are displayed in the datagridcomboboxes. I wanna display money value, volume, number, and price instead any ideas?

2

2 Answers

1
votes
2
votes

Description attribute cannot be localized. Do take a look at this reply.

Can my enums have friendly names?