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
public virtual object DataSource {get; set;}
public: __property virtual Object* get_DataSource();
public: __property virtual void set_DataSource(Object*);
public function get DataSource() : Object;
public function set DataSource(Object);

Property Value

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


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.


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

See Also

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