title: devexpress xtrareport binding multiple list datasource
body: <p>I am attaching Class Detail as my DataSource to the report;</p>
  
  <pre><code>class Detail
  { 
  public string Name { get; set; }
  public string State { get; set; }
  public string City { get; set;}
  public List&lt;Transaction&gt; tran { get; set; }
  }
  class Transaction
  {
  public string TransactionDate { get; set; }
  public string TransactionDescription { get; set; } 
  }
  </code></pre>
  
  <p>and in my query i send it as List.</p>
  
  <pre><code>public List GetAccount(string account) {
  List detail = new List();
  sql ....
  foreach (DataRow dr in dt.Rows)
  {
  detail.Add(new Detail()
  {
    Name= dr["name"].Equals(DBNull.Value) ? string.Empty : dr["name"].ToString(),
   .....
    tran = GetTransactionDetail(account)// calling a list
  
   }); 
  }
  return detail;
  }
  
  public List&lt;Transaction&gt; GetTransactionDetail(string account)
  {
  ....
  }
  </code></pre>
  
  <p>and at the Form1.cs</p>
  
  <pre><code>XtraReport1 rep = new XtraReport1();
  printControl1.PrintingSystem = rep.PrintingSystem;
  var ls = query.GetAccount(accountNo);
  rep.DataSource = ls;
  rep.CreateDocument();
  </code></pre>
  
  <p>in the report i should get a list of transaction details but i get only the first row.
  thanks,</p>