Hello Guys.... I am trying to Bind DropDownList with enum as follows.
cmbFromShape.DataSource = Enum.GetValues(typeof(KavirDiam.Common.Shape));
cmbFromShape.DataBind();
Following is my enum:
public enum Shape
{
Any,
Round,
Princess,
Emerald,
Asscher,
CushionBrilliant,
CushionModify,
Pear,
Radiant,
SQRadiant,
Heart,
Marquise,
Oval
}
While getting Selected Item/Value/Index it is always...returning me 'Any' i.e first member. I am not able to get the value of selected member.
dipak