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

ASPxListBox.SelectedIndices Property

Gets the collection of the selected items’ indexes within the list box.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public SelectedIndexCollection SelectedIndices { get; }

Property Value

Type Description
SelectedIndexCollection

A SelectedIndexCollection object that contains the selected items.

Remarks

The SelectedIndices property can be used to programmatically manage the collection of the selected items’ indices within the list box. You can add, insert, remove, retrieve, and modify the items from the collection. Any updates to the collection will be automatically reflected in the editor, the next time the page is refreshed. This property can also be used to access the selected items by their indices.

Note

The SelectedIndices property is not in effect if the ASPxListBox.SelectionMode property is set to ListEditSelectionMode.Single.

For more information about multiple selection, read the Multi-Selection Mode topic.

The property is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio designer tools.

See Also