Share via


SelectableItemsView.SelectedItem Property

Definition

Gets or sets the currently selected item when SelectionMode is Single.

public:
 property System::Object ^ SelectedItem { System::Object ^ get(); void set(System::Object ^ value); };
public object SelectedItem { get; set; }
member this.SelectedItem : obj with get, set
Public Property SelectedItem As Object

Property Value

The selected data item, or null if no item is selected.

Remarks

This property is only meaningful when SelectionMode is Single. For multiple selection, use the SelectedItems property instead. The binding mode defaults to TwoWay.

Applies to