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

DataControlBase.SelectedItem Property

Get or sets the currently focused data item.

Namespace: DevExpress.UI.Xaml.Grid

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

Declaration

[CloneDetailMode(CloneDetailMode.Skip)]
public object SelectedItem { get; set; }
<CloneDetailMode(CloneDetailMode.Skip)>
Public Property SelectedItem As Object

Property Value

Type Description
Object

A Object specifying the focused row.

Remarks

When record multi-selection is disabled, both the DataControlBase.CurrentItem and SelectedItem properties refer to the focused record.

When multi-selection mode is enabled, the DataControlBase.CurrentItem property refers to the last selected object (focused record), while the SelectedItem property refers to the first selected object (the first item in the DataControlBase.SelectedItems collection).

See Also