System.Windows.Forms.ListControl.SelectedValue Property

Gets or sets the value of the member property specified by the ListControl.ValueMember property.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue(null)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
public object SelectedValue { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If a property is not specified in ListControl.ValueMember, ListControl.SelectedValue returns the results of the ToString method of the object.

ComboBox.SelectedIndex, ListControl.SelectedValue, and ListControl.FormattingEnabled are related as follows:

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0