Represents a field that displays enum values as a drop-down list in a data-bound control.
For a list of all members of this type, see EnumDropDownField Members.
System.Object
DataControlField
BoundField
BaseDropDownField
EnumDropDownField
The EnumDropDownField is a custom DataControlField implementation that can be used in data-bound controls such as DetailsView and GridView. Use this field implementation to provide better user experience for enumeration properties where the possible values can be displayed in a drop-down list.
The EnumDropDownField derives from the BoundField class, so you have to use the BoundField.DataField property to specify the name of the property that will be bound to the field. Set the EnumTypeName property to specify the enumeration type that represents the possible values in the drop-down list.
Please note that the default implementation of EnumDropDownField renders the name of the enumeration instances in the drop-down list. To change the displayed enumeration names (E.g., to add localisation support), simply override the GetEnumText method.
If you wish to customise the list of items displayed in the drop-down list further, please consider using the DropDownField instead, where you can bind the drop-down list to an arbitrary data source.
Namespace: TechTalk.Genome.Extensions.Web.UI.Controls
Assembly: TechTalk.Genome.Extensions.Web (in TechTalk.Genome.Extensions.Web.dll)
Version: 4.2.4.4
Editions: Professional, Evaluation, Express
EnumDropDownField Members | TechTalk.Genome.Extensions.Web.UI.Controls Namespace