title: How do i use linq as datasource for a Microsoft report
body: <pre><code>var exams = (from appointment in appointments select new {coursecode = (appointment.Tag as exam).ID}).ToList();
  
  rpt.LocalReport.DataSources.Add(new ReportDataSource("dsExam". exams.AsEnumerable()));
  rpt.ProcessingMode = ProcessingMode.Local;
  rpt.RefreshReport();
  </code></pre>
  
  <p>Each appointment object contains an exam object.
  I would like to use the results of the linq query as the datasource of my report. However only the first row in IEnumerable exams is shown in the report even though it contains 81 rows. How can i fix this. </p>