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

ASPxComboBox.SelectedIndex Property

Specifies the index of the selected list item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(-1)]
public int SelectedIndex { get; set; }

Property Value

Type Default Description
Int32 -1

The index of the selected item.

Remarks

The ASPxComboBox.SelectedIndexChanged event fires when end users change the selection in the editor list or you change the SelectedItem or SelectedIndex properties.

<dx:ASPxComboBox ID="ASPxComboBox1" runat="server">
    <Items>
        <dx:ListEditItem Text="Afghanistan" Value="1" />
        <!--...-->          
    </Items>
</dx:ASPxComboBox>

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedIndex property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also