aspnet-devexpress-dot-web-dot-aspxlistedit-ded44ba0.md
Occurs after a different item in the list has been selected (focus has been moved from one item to another).
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public event EventHandler SelectedIndexChanged
Public Event SelectedIndexChanged As EventHandler
The SelectedIndexChanged event's data class is EventArgs.
The SelectedIndexChanged event occurs on the server side, whenever selection is moved between items within a list editor. Write a handler for the SelectedIndexChanged event to perform tasks in response to an end user selecting a different item from the editor’s list.
Note
The SelectedIndexChanged event’s generation depends upon the settings of the ASPxEdit.AutoPostBack property and the ASPxClientProcessingModeEventArgs.processOnServer property passed to the corresponding client ASPxClientListEdit.SelectedIndexChanged event, if it is handled. refer to the descriptions of these properties for more information.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedIndexChanged event.
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.
ASPxCheckBoxList control = ViewEditMode == DevExpress.ExpressApp.Editors.ViewEditMode.Edit ? Editor : InplaceViewModeEditor;
control.SelectedIndexChanged -= new EventHandler(Control_SelectedIndexChanged);
checkedItems = (XPBaseCollection)PropertyValue;
Dim control As ASPxCheckBoxList = If(ViewEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit, Editor, InplaceViewModeEditor)
RemoveHandler control.SelectedIndexChanged, AddressOf Control_SelectedIndexChanged
checkedItems = CType(PropertyValue, XPBaseCollection)
See Also