Implement accordion within table and asp:repeater
<p>I create  table inside a repeater
and the data appears correctly, it will be two records looks like in the image below.</p>

<p><a href="https://i.stack.imgur.com/rHZxx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rHZxx.png" alt="enter image description here"></a>
what i want: how to make accordion when user clicks on the deposit number(Example 16), new table will appear and contain data. </p>

<p>this is the repeater the first repeater code:</p>

<pre><code>&lt;asp:Repeater ID="rptDep"  runat="server"  &gt;
    &lt;HeaderTemplate&gt;
        &lt;table class="table table-hover table-striped table-condensed table-bordered table-responsive"&gt;
            &lt;tr&gt;
                &lt;th&gt;Deposit No.&lt;/th&gt;
                &lt;th&gt;Custom Declaration No.&lt;/th&gt; 
                &lt;th&gt;Category&lt;/th&gt;
                &lt;th&gt;Location&lt;/th&gt;
                &lt;th&gt;Goods Description&lt;/th&gt;
                &lt;th&gt;Units Balance&lt;/th&gt;
                &lt;th&gt;WT Balance&lt;/th&gt;
                &lt;th&gt;Goods Balance Amount(LC)&lt;/th&gt;
            &lt;/tr&gt;
    &lt;/HeaderTemplate&gt;
    &lt;ItemTemplate&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;a href="#"&gt;  &lt;%#Eval("depNo") %&gt;&lt;/a&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%#Eval("customDec") %&gt;&lt;/td&gt;    
            &lt;td&gt;&lt;%#Eval("category") %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%#Eval("location") %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%#Eval("goodDesc") %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%#Eval("unitsBal") %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%#Eval("wtBal") %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%#Eval("lcBal") %&gt;&lt;/td&gt;                  
        &lt;/tr&gt; 
    &lt;/ItemTemplate&gt;
    &lt;FooterTemplate&gt;
        &lt;/table&gt;
    &lt;/FooterTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>I know that it will be a second repeater, but how to implement that, or how to use foreach statement?</p>