System.Web.UI.WebControls.ListControl.DataTextField Property

Gets or sets the field of the data source that provides the text content of the list items.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.Web.UI.Themeable(false)]
public virtual string DataTextField { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to specify a field in the BaseDataBoundControl.DataSource property to display as the items of the list in a list control.

The value of this property is stored in view state.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0