BaseDataListDesigner.GetSelectedDataSource Method

Definition

Gets the data source component from the associated control container.

C#
public object GetSelectedDataSource();

Returns

An object implementing an IEnumerable interface containing the design-time DataSource property of the associated control; otherwise, null if a data source is not found.

Implements

Remarks

The GetSelectedDataSource method uses the DesignTimeData.GetSelectedDataSource method to construct a data source from the object that is specified by the DataSource property of the associated control derived from the BaseDataList class.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also