Skip to main content
A newer version of this page is available. .
Tab

ASPxDropDownEdit.KeyValue Property

Gets or sets the key value associated with the text displayed within the editor’s edit box.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(null)]
public object KeyValue { get; set; }

Property Value

Type Default Description
Object *null*

An object specifying the key value associated with the editor’s value (displayed text).

Remarks

The KeyValue property works together with the client ASPxClientDropDownEdit.GetKeyValue and ASPxClientDropDownEdit.SetKeyValue methods. They allow you to implement custom lookup behavior using the ASPxDropDown editor more easily. If you define the editor’s dropdown window as a list of items which can have key values and display texts, you can preserve and synchronize information about the key value of a list item selected on the client, by using these members.

Note

In the current implementation, there is no ability to specify the data type for key values within the ASPxDropDownEdit editor. So, when the editor’s key value is returned from the client side, the KeyValue property interprets and represents it as a string.

See Also