ComponentOne SuperPanel for ASP.NET WebForms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBox Class / DataTextField Property
Example

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