Loop through the column headers
<p>I am using Delphi and FastReport. I have a dataset with stored procedure. The stored procedure returns dynamic number of columns...</p>

<p>How can I determine how many columns will a dataset return and adjust accordingly the number of columns on fastreport?</p>

<p>I dont have any code example because I need to figure this out first. </p>

<p>Please help. 
Thanks.</p>