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

In This Topic
    DataSelectedField Property
    In This Topic
    Gets or sets the field in the data source from which to load item state.
    Syntax
    'Declaration
     
    Public Property DataSelectedField As System.String
    public System.string DataSelectedField {get; set;}
    Example
    C1ComboBox c = new C1ComboBox();
    c.DataSource = data;
    c.DataTextField = "textField";
    c.DataValueField = "valueField";
    c.DataSelectedField = "selectedField";
    c.DataBind();
    See Also