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)

Object^ GetSelectedDataSource()

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