Skip to main content

DataControlBase.SelectedItemChanged Event

Occurs after the selected item has been changed.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public event SelectedItemChangedEventHandler SelectedItemChanged

Event Data

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

Remarks

The selected item is displayed within a grid if the DataControlBase.NavigationStyle property isn’t set to GridControlNavigationStyle.None. The selected item’s handle is returned by the DataControlBase.SelectedItemHandle property. Its visible position within a grid can be obtained using the GridControl.GetRowVisibleIndexByHandle method.

The SelectedItemChanged event is raised after the selected item’s underlying data object has been changed (e.g. focus moves to another item). However, when sorting or grouping, items are reordered, their handles are changed but the data object corresponding to the focused row is not changed. The SelectedItemChanged event is not raised.

To respond to changing the focused row’s handle, use the DataControlBase.SelectedItemChanged event.

See Also