title: DevExpress Xtrareport Hide report header when detail section is empty
body: <p>I have a report with Detail Band <strong>bound to datasource</strong>.
  in some cases, my report has multiple pages and the last page may contain Detail Band rows and other cases the last page has no Detail Band rows, so it will just show the page header with my report footer.</p>
  
  <p>I want to hide the header when the last page has no detail rows.</p>
  
  <p>I tried using <code>PageHeader_BeforePrint</code> Event, but I couldn't get any value to indicate whether the Detail section of this page is empty or not.</p>
  
  <p>I used a <strong>row count label</strong>, but this counter in <code>PageHeader_BeforePrint</code> event always has the same value, although after printing finishes, the visible value of this counter is correct on every page.</p>
  
  <p>so, the basic issue is: in <code>PageHeader_BeforePrint</code> How to determine whether the Detail Band section has rows or not?</p>