DataSource Property

List.DataSource Property

 

Gets or sets the data source of the list that is being bound. The default value is null. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

[BindableAttribute(true)]
public virtual object DataSource { get; set; }

Property Value

Type: System.Object

The data source of the list that is being bound.

To bind a data source to a list, you must first use the control's DataBind method to ensure data binding. The data source can either be of type IEnumerable, or it can be of type IListSource. If the data source is of type IListSource, you can use the DataMember field to specify which member to extract.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft