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

ListEditItem.Value Property

Gets or sets the item's associated value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

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

Property Value

Type Default Description
Object

null

A Object that specifies the item's value

Remarks

The Value property specifies a value associated with an item. When an item is selected in a list editor, its value is assigned to the editor's ASPxEdit.Value property.

NOTE

For the list editors (such as the ASPxComboBox, ASPxListBox, ASPxCheckBoxList, and ASPxRadioButtonList) to function properly, values of all list items in their Items collection should be unique. There should not be two or more list items with the same value of the ListEditItem.Value property.

Examples

The complete sample project is available in the DevExpress Code Central database at E55.

<dxe:ASPxComboBox ID="cbCombo" runat="server" Width="170px" ClientInstanceName="combo">
    <ClientSideEvents SelectedIndexChanged="OnComboBoxSelectedIndexChanged" />
    <Items>
        <dxe:ListEditItem Text="Item #1" Value="0" />
        <dxe:ListEditItem Text="Item #2" Value="1" />
        <dxe:ListEditItem Text="Item #3" Value="2" />
    </Items>
</dxe:ASPxComboBox>
See Also