ReportDataSource Constructor (String, DataTable)
Constructs a named data source with a DataTable object in the Value property.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
public ReportDataSource(
string name,
DataTable dataSourceValue
)
public:
ReportDataSource(
String^ name,
DataTable^ dataSourceValue
)
new :
name:string *
dataSourceValue:DataTable -> ReportDataSource
Public Sub New (
name As String,
dataSourceValue As DataTable
)
Parameters
name
Type: System.StringThe name of the data source, as specified in the report definition for the current report.
dataSourceValue
Type: System.Data.DataTableA DataTable object that contains the data.
See Also
ReportDataSource Overload
ReportDataSource Class
Microsoft.Reporting.WinForms Namespace
Return to top