ObjectList.DataSource Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 be of type IEnumerable or 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

IEnumerable
DataMember
IListSource
ObjectList Class
System.Web.UI.MobileControls Namespace
Introduction to the ObjectList Control
Creating Custom Mobile Controls

Return to top
Show: