How to put 3 GridViews inside a Repeater
<p>I have a long table, so I want to split it into 3 GridView. Each GridView will have different headers (different columns from the DB). I want to use one SqlDataSource. For that, I am thinking to use a Repeater and then put 3 GridViews inside it. </p>

<p>Since I am using StoredProcedure that asks for one parameter in order to specify the headers of each GridView, I set the that parameter as HiddenField but even with that I did not get any result.</p>

<pre><code>&lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"&gt;
        &lt;ItemTemplate&gt;

            &lt;asp:HiddenField ID="HiddenField1" runat="server" Value='&lt;%#Eval("GroupID")%&gt;' /&gt;

            &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                ConnectionString="&lt;%$ ConnectionStrings:testConnectionString %&gt;"
                                SelectCommandType="StoredProcedure"&gt;
                &lt;SelectParameters&gt;
                    &lt;asp:ControlParameter ControlID="HiddenField1" /&gt;
                &lt;/SelectParameters&gt;
            &lt;/asp:SqlDataSource&gt;

            &lt;asp:GridView ID="GridView1" runat="server" AllowSorting="True" CellPadding="4" 
                DataKeyNames="BadgeNo" DataSourceID="SqlDataSource1" ForeColor="#333333" 
                GridLines="None"&gt;
                &lt;AlternatingRowStyle BackColor="White" ForeColor="#284775" /&gt;
                &lt;Columns&gt;
                    &lt;asp:CommandField ShowSelectButton="True" /&gt;
                &lt;/Columns&gt;
                &lt;EditRowStyle BackColor="#999999" /&gt;
                &lt;FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt;
                &lt;HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt;
                &lt;PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /&gt;
                &lt;RowStyle BackColor="#F7F6F3" ForeColor="#333333" /&gt;
                &lt;SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /&gt;
                &lt;SortedAscendingCellStyle BackColor="#E9E7E2" /&gt;
                &lt;SortedAscendingHeaderStyle BackColor="#506C8C" /&gt;
                &lt;SortedDescendingCellStyle BackColor="#FFFDF8" /&gt;
                &lt;SortedDescendingHeaderStyle BackColor="#6F8DAE" /&gt;
            &lt;/asp:GridView&gt;

        &lt;/ItemTemplate&gt;
    &lt;/asp:Repeater&gt;

    &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                       ConnectionString="&lt;%$ ConnectionStrings:testConnectionString %&gt;"
                       SelectCommand="SELECT DISTINCT GroupID
                                from courses"&gt;
    &lt;/asp:SqlDataSource&gt;
</code></pre>
