Gets or sets the field in the data source from which to load text values.

Namespace:  C1.Web.UI.Controls.C1ComboBox
Assembly:  C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)

Syntax

C#
[C1CategoryAttribute("Category.Data")]
[LayoutAttribute(LayoutType.Misc)]
[DefaultValueAttribute("")]
public string DataTextField { get; set; }
Visual Basic (Declaration)
<C1CategoryAttribute("Category.Data")> _
<LayoutAttribute(LayoutType.Misc)> _
<DefaultValueAttribute("")> _
Public Property DataTextField As String
	Get
	Set

Examples

Copy CodeC#
C1ComboBox c = new C1ComboBox();
c.DataSource = data;
c.DataTextField = "textField";
c.DataValueField = "valueField";
c.DataBind();

See Also