GetSelectedDataSource Method

ListControlDesigner.GetSelectedDataSource Method ()

 

Gets the data source component from the associated control container.

Namespace:   System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

Public Function GetSelectedDataSource As Object

Return Value

Type: System.Object

An object implementing an IEnumerable interface and containing the design-time DataSource of the associated control.

The GetSelectedDataSource method returns null if a DataSource property is not found, or if a DataSource with the same name does not exist.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft