The requested page is not available for the requested platform. You are viewing the content for Default platform.

DataControlBase.SelectedItemChanged Event

Occurs after the selected item has been changed.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.1.dll

Declaration

public event SelectedItemChangedEventHandler SelectedItemChanged
Public Event SelectedItemChanged As SelectedItemChangedEventHandler

Event Data

The SelectedItemChanged event handler receives an argument of the DevExpress.UI.Xaml.Grid.SelectedItemChangedEventArgs type.

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