System.Web.UI.WebControls.DataBoundControl.GetData Method

Retrieves a System.Web.UI.DataSourceView object that the data-bound control uses to perform data operations.

Syntax

protected virtual System.Web.UI.DataSourceView GetData ()

Returns

The System.Web.UI.DataSourceView that the data-bound control uses to perform data operations. If the DataBoundControl.DataMember property is set, a specific, named System.Web.UI.DataSourceView is returned; otherwise, the default System.Web.UI.DataSourceView is returned.

Remarks

The DataBoundControl.GetData method retrieves a System.Web.UI.DataSourceView object from the associated data source control by calling the DataBoundControl.GetDataSource method. If the BaseDataBoundControl.DataSource property is used to identify a data source, a default System.Web.UI.DataSourceView object is created.

Requirements

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