ReportDataSource Class

 

Represents a data source for a report.

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

System.Object
  Microsoft.Reporting.WebForms.ReportDataSource

public sealed class ReportDataSource

NameDescription
System_CAPS_pubmethodReportDataSource()

Constructs an empty data source.

System_CAPS_pubmethodReportDataSource(String)

Constructs a named data source.

System_CAPS_pubmethodReportDataSource(String, DataTable)

Constructs a named data source with a DataTable in the Value property.

System_CAPS_pubmethodReportDataSource(String, IDataSource)

Constructs a named data source with an IDataSource in the Value property.

System_CAPS_pubmethodReportDataSource(String, IEnumerable)

Constructs a named data source with an IEnumerable in the Value property.

System_CAPS_pubmethodReportDataSource(String, Object)

Constructs a named data source with a value.

System_CAPS_pubmethodReportDataSource(String, String)

Constructs a named data source with a data source ID.

NameDescription
System_CAPS_pubpropertyDataMember

Specifies the name of the list of data for binding.

System_CAPS_pubpropertyDataSourceId

Gets or sets the data source ID.

System_CAPS_pubpropertyName

Gets or sets the name of the report data source.

System_CAPS_pubpropertyValue

Gets or sets the instance of the report data source.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

The ReportDataSource class is used with the DataSources collection of a LocalReport object to add one or more required data sources to a local report. This is necessary when adding a report to the ReportViewer control.

Legacy Code Example

Please see LocalReport for code examples.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: