This documentation is archived and is not being maintained.

ListControl.DataSource Property

.NET Framework 1.1

Gets or sets the data source that populates the items of the list control.

[Visual Basic]
Public Overridable Property DataSource As Object
[C#]
public virtual object DataSource {get; set;}
[C++]
public: __property virtual Object* get_DataSource();
public: __property virtual void set_DataSource(Object*);
[JScript]
public function get DataSource() : Object;
public function set DataSource(Object);

Property Value

A data source that provides data for populating the list control.

Remarks

Use this property to specify a source of data to populate a list control.

The items in the Items collection are initialized from DataTextField and DataValueField.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

ListControl Class | ListControl Members | System.Web.UI.WebControls Namespace | Items | DataTextField | DataValueField

Show: