Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The short answer: <strong>Yes</strong>. The ReportViewer can behave in the manner you describe. (Your colleague is incorrect.)</p> <p>There are a couple approaches for displaying all rows in your data source rather than just the first one. I'm most familiar with the <strong>List Control</strong> approach which is described here but there is also a <strong>Master-Detail</strong> approach using either subreports or nested data regions. </p> <p>Strictly speaking, this question is about <em>displaying multiple data rows</em>, not custom object collections. You might want to edit the question title from, “.NET ReportViewer capabilities: Binding to custom object collections?” to say “.NET ReportViewer capabilities: Displaying multiple rows”?</p> <p>When designing your report, if you place a field from your data source onto the report designer and display the report, you've noticed only one row is displayed rather than the whole dataset. On closer inspection, the ReportDesigner wrapped the aggregate function First() around your data field. This is the default behavior for the ReportViewer. </p> <p>What you want to do is use the List control and place your data field control(s) within it. Now, all field rows will be displayed. It is that easy.</p> <p>The List is a critical component in successful use of the ReportViewer. Read up on it. The List can accommodate greater complexity using its Group Expression capabilities and also by nesting List/Table controls within it.</p> <p><strong>Resources</strong>:</p> <p>As mentioned in another post, one of the best web resources for the ReportViewer is the <a href="http://www.gotreportviewer.com" rel="nofollow noreferrer">GotReportViewer</a> site. There you'll find more info on using List, Master-Detail and more. </p> <p>Good luck.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload