ListControlDesigner.GetSelectedDataSource Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the data source component from the associated control container.

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

member GetSelectedDataSource : unit -> 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