System.Web.UI.WebControls.BaseDataBoundControl.DataSource Property

Gets or sets the object from which the data-bound control retrieves its list of data items.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue(null)]
[System.Web.UI.Themeable(false)]
[System.ComponentModel.Bindable(true)]
public virtual object DataSource { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When you set the BaseDataBoundControl.DataSource property, the BaseDataBoundControl.ValidateDataSource(object) method is called. In addition, if the data-bound control has already been initialized, the BaseDataBoundControl.OnDataPropertyChanged method is called to set the BaseDataBoundControl.RequiresDataBinding property to true.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0