LocalReport.DataSources Property

Gets a collection of data sources used by the report.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)] 
[WebBrowsableAttribute(true)] 
[NotifyParentPropertyAttribute(true)] 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] 
public ReportDataSourceCollection DataSources { get; }
/** @property */
public ReportDataSourceCollection get_DataSources ()

public function get DataSources () : ReportDataSourceCollection

Property Value

A read-only ReportDataSourceCollection object.

Although the collection property is ready only, you can add or remove data sources in the returned ReportDataSourceCollection object.

Show: