ComponentOne ChartNavigator for ASP.NET Web Forms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBox Class / SelectedItem Property
Example

In This Topic
    SelectedItem Property
    In This Topic
    Gets the SelectedItem of C1ComboBox.
    Syntax
    'Declaration
     
    Public Overridable ReadOnly Property SelectedItem As C1ComboBoxItem
    public virtual C1ComboBoxItem SelectedItem {get;}
    Example
    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