F
frivard
I have a Enum named "Status" with elements like
public enum Status : int
{
[Description("Treatment")] T = 82,
[Description("Complete")] C = 67,
}
I want to display de content of this Enum in a combobox.
In my combobox i want the [Description] attribute to be
displayed.
For example: I want "Treatment" as DisplayMember and "T"
as valueMember.
How can i do that ?
Thanks
public enum Status : int
{
[Description("Treatment")] T = 82,
[Description("Complete")] C = 67,
}
I want to display de content of this Enum in a combobox.
In my combobox i want the [Description] attribute to be
displayed.
For example: I want "Treatment" as DisplayMember and "T"
as valueMember.
How can i do that ?
Thanks