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

In This Topic
    SelectedValue Property (C1ComboBox)
    In This Topic
    Gets or sets the SelectedValue of C1ComboBox.
    Syntax
    'Declaration
     
    Public Overridable Property SelectedValue As System.String
    public virtual System.string SelectedValue {get; set;}
    Example
    C1ComboBox c = new C1ComboBox();
    c.Items.Add(new C1ComboBoxItem("test1"));
    c.Items.Add(new C1ComboBoxItem("test2"));
    // select the test2 item.
    c.SelectedValue = "test2";
    See Also