title: Crystal reports datasource with references
body: <p>I am new with crystal reports and have one problem. I need subreport or grouping in table, but problem is that I have two clases Group and Foo, Group has List and I need grouping via Group.Name and display data from Foo.</p>
  
  <p>For example:</p>
  
  <pre><code>    public class Group
      {
          public string Name{get;set;}
          public List&lt;Group&gt; Children{get;set}
          public Group ParentGroup{get;set;}
          public List&lt;Foo&gt; Items{get;set;}
      }
  
      public class Foo
      {
          public string Name{get;set;}
          public string Number{get;set;}
          public double Price{get;set;}
          public double Quantity{get;set;}
      }
  </code></pre>
  
  <p>and I want get report grouped by Group.Name and see Foo detail</p>
  
  <p>For example:</p>
  
  <p>Group1</p>
  
  <hr>
  
  <p>|Name  |  Number  | Quantity  | Price  | TotalPrice |</p>
  
  <hr>
  
  <p>|Pen   |  01      | 3 | 15 | 45|</p>
  
  <p>|Eraser   |  14      | 1 | 20 | 20|</p>
  
  <p>How is the best way to do it? Data is not in database, its only as object in c#. But real problem is reference Group.Items</p>
  
  <p>Thanks for help. Jakub</p>