Built a CR using following data taken from a database and loaded into a dataset. Below is the code to construct the dataset and set up the report. I put 2 Datagridviews on the form to display the data. Both grids display data, but the report shows nothing.
Dim ds As New rptDataSet Dim t as DataTable = ds.TmsSchedule Dim s As DataTable = ds.School Dim sc = From tms In db.TmsSchedules _
Join sch In db.Schools On sch.SchoolDate Equals tms.schDate _
Where tms.schDate >= firstDate And tms.schDate <= lastDate _
Select tms.schDate, sch.SchoolDate Dim r As DataRow
Dim rs As DataRow
For Each dr In sc
r = t.NewRow()
r("schDate") = dr.schDate
t.Rows.Add(r)
rs = s.NewRow()
rs("SchoolDate") = dr.SchoolDate
s.Rows.Add(rs)
next
Dim objRpt As New rptSchedule objRpt.SetDataSource(ds) CrystalReportViewer1.ReportSource = objRpt CrystalReportViewer1.Refresh()