ListControl.DataSource Property


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

 virtual property System::Object ^ DataSource { System::Object ^ get(); void set(System::Object ^ value); };
public virtual object DataSource { get; set; }
member this.DataSource : obj with get, set
Public Overridable Property DataSource As 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.

Applies to