A newer version of this page is available. Switch to the current version.

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.v18.2.dll


public object KeyValue { get; set; }
Public Property KeyValue As Object

Property Value

Type Default Description


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


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.


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