BaseListControlSelectedItem Property

Gets or sets the currently selected item in the list control

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public Object SelectedItem { get; set; }

Property Value

Object

If there is no current selection, this property returns null.

When you set this property to an object, the list control attempts to make that object the currently selected one in the list. If the object is found in the list, it is displayed as the selected item and the SelectedIndex property is set to the corresponding index. If the object does not exist in the list the SelectedIndex property is left at its current value.

See Also