Glossary Item Box
In addition to being able to set the report's data source at design time, it is also possible to set the report's data source at run time to a data set. This makes it easy to use data sets created with Microsoft's data controls in your reports. To use a data set, set the report's DataSource property to the data set being used and the report's DataMember property to the table from which the report's data is derived.
The following example shows what the code for the method looks like.
' Visual Basic
Dim rpt As New rptDataView()
rpt.DataSource = Me.dataSet11
rpt.DataMember = "employees"
//C#
rptDataView rpt = new rptDataView();
rpt.DataSource = this.dataSet11;
rpt.DataMember = "employees";
See Also |
Getting Started | Using the DataSource Icon | Using a Data View
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.