Roberto Salemi

Roberto Salemi

  • NA
  • 146
  • 141.2k

Bind enum to combobox

Feb 19 2015 12:05 PM
Hi,

I have this enum type:

        public enum SchedActiveEnum
        {
            [Description("All")]
            All,
            [Description("Y")]
            Y,
            [Description("N")]
            N
        }
What is the better way for bind it in a combobox?


I would like to display the description but get the value.

Thanks.

Answers (5)