Gets the SelectedItem of C1ComboBox.

Namespace:  C1.Web.UI.Controls.C1ComboBox
Assembly:  C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)

Syntax

C#
[DefaultValueAttribute(null)]
[BrowsableAttribute(false)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[BindableAttribute(false)]
public virtual C1ComboBoxItem SelectedItem { get; }
Visual Basic (Declaration)
<DefaultValueAttribute(Nothing)> _
<BrowsableAttribute(False)> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _
<BindableAttribute(False)> _
Public Overridable ReadOnly Property SelectedItem As C1ComboBoxItem
	Get

Examples

Copy CodeC#
C1ComboBox c = new C1ComboBox();
c.Items.Add(new C1ComboBoxItem("test1"));
c.Items.Add(new C1ComboBoxItem("test2"));
c.SelectedIndex = 1;
// item will refer to test2.
C1ComboBoxItem item = c.SelectedItem;

See Also