This documentation is archived and is not being maintained.
ListControl.DataTextField Property
.NET Framework 1.1
Gets or sets the field of the data source that provides the text content of the list items.
[Visual Basic] Public Overridable Property DataTextField As String [C#] public virtual string DataTextField {get; set;} [C++] public: __property virtual String* get_DataTextField(); public: __property virtual void set_DataTextField(String*); [JScript] public function get DataTextField() : String; public function set DataTextField(String);
Property Value
A System.String that specifies the field of the data source that provides the text content of the list items. The default is String.Empty.
Remarks
Use this property to specify a field in the DataSource to display as the items of the list in a list control.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
ListControl Class | ListControl Members | System.Web.UI.WebControls Namespace | DataSource | RadioButtonList
Show: