C1.Web.Wijmo.Controls.C1ComboBox Namespace > C1ComboBox Class : SelectedValue Property |
'Declaration
<WidgetOptionAttribute()> <System.ComponentModel.BrowsableAttribute(False)> <System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <System.ComponentModel.DefaultValueAttribute()> <LayoutAttribute(LayoutType.Behavior)> <System.ComponentModel.BindableAttribute(Bindable=True, Direction=BindingDirection.OneWay)> Public Overridable Property SelectedValue As System.String
[WidgetOption()] [System.ComponentModel.Browsable(false)] [System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [System.ComponentModel.DefaultValue()] [Layout(LayoutType.Behavior)] [System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)] public virtual System.string SelectedValue {get; set;}
C1ComboBox c = new C1ComboBox(); c.Items.Add(new C1ComboBoxItem("test1")); c.Items.Add(new C1ComboBoxItem("test2")); // select the test2 item. c.SelectedValue = "test2";
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2