最佳答案
假设我有以下简单枚举:
enum Response
{
Yes = 1,
No = 2,
Maybe = 3
}
如何将此枚举绑定到 DropDownList 控件,以便在选择选项后在列表中显示描述并检索相关的数值(1,2,3) ?