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

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