Table of Contents

Event SelectionChanged

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Occurs when the SelectedIndex property or the SelectedIndices collection has changed.

public event EventHandler? SelectionChanged

Returns

EventHandler
Occurs when the property or the collection has changed.

Remarks

You can create an event handler for this event to determine when the selected index in the ListView has been changed. This can be useful when you need to display information in other controls based on the current selection in the ListView.

You can use the event handler for this event to load the information in the other controls. If the SelectionMode property is set to Multiple, any change to the SelectedIndices collection, including removing an item from the selection, will raise this event.

The SelectedIndices collection changes whenever an individual ListViewItem selection changes. The property change can occur programmatically or when the user selects an item or clears the selection of an item.