Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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