This documentation is archived and is not being maintained.

ListControl.DataValueField Property

Gets or sets the field of the data source that provides the value of each list item.

[Visual Basic]
Public Overridable Property DataValueField As String
[C#]
public virtual string DataValueField {get; set;}
[C++]
public: __property virtual String* get_DataValueField();
public: __property virtual void set_DataValueField(String*);
[JScript]
public function get DataValueField() : String;
public function set DataValueField(String);

Property Value

A System.String that specifies the field of the data source that provides the value of each list item. The default is String.Empty.

Remarks

Use this property to specify the field that contains the value of each item 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

Show: