MSDN Library

ReportDataSource Class

 

Represents a data source for a report.

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

System.Object
  Microsoft.Reporting.WinForms.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, BindingSource)

Constructs a named data source with a BindingSource object in the Value property.

System_CAPS_pubmethodReportDataSource(String, DataTable)

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

System_CAPS_pubmethodReportDataSource(String, IEnumerable)

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

System_CAPS_pubmethodReportDataSource(String, Object)

Constructs a named data source with a value.

System_CAPS_pubmethodReportDataSource(String, Type)

Constructs a named data source with the Value property initialized as a particular type.

NameDescription
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

For code examples, see LocalReport.

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:
© 2016 Microsoft