title: Magento custom report - access generated data
body: <p>I've created a custom report in Magento fine, but need to add a summery of the data at the bottom. How do I access the generated data to create a summery? Thanks.
  More information...</p>
  
  <pre><code>$gridBlock = $this-&gt;getLayout()-&gt;getBlock('adminhtml_report.grid');
  $collection = $gridBlock-&gt;getCollection();
  $item = $collection-&gt;getItems();
  </code></pre>
  
  <p>But the items are empty, foreach on $collection returns empty as well. The data are shown in the grid area.</p>