Skip to main content

DataControlBase.SelectedItemChanged Event

Occurs after grid’s selection has been changed.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public event SelectedItemChangedEventHandler SelectedItemChanged

Event Data

The SelectedItemChanged event's data class is DevExpress.Xpf.Grid.SelectedItemChangedEventArgs.

Remarks

Each time a user selects a row, the GridControl raises the SelectedItemChanged event.

The SelectedItemChangedEventArgs.NewItem property returns the selected record. The SelectedItemChangedEventArgs.OldItem property returns the record that is deselected.

If Multiple Row Selection mode is enabled and a user selects multiple rows, the DataControlBase.SelectedItem property returns the item that was selected first, and the SelectedItemChanged event does not occur.

Refer to the following help topic for more information: Row Selection.

See Also