GridView.IDataBoundControl.DataSource Property

Definition

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

C#
object System.Web.UI.WebControls.IDataBoundControl.DataSource { get; set; }

Property Value

The data source object that the data-bound control uses.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the GridView instance is cast to an IDataBoundControl interface.

ASP.NET Dynamic Data supports this property.

Applies to

Produto Versões
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1