System.Web.UI.WebControls.HierarchicalDataBoundControl.GetDataSource Method

Retrieves the System.Web.UI.IHierarchicalDataSource that the data-bound control is associated with, if any.

Syntax

protected virtual System.Web.UI.IHierarchicalDataSource GetDataSource ()

Returns

An System.Web.UI.IHierarchicalDataSource instance that represents the data source identified by the DataBoundControl.DataSourceID property.

Remarks

Requirements

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