Fix header row in repeater in ASP.NET
<p>i am trying to figure out how to fix the header row with in the repeater using asp.net. When trying to put position:fixed; in the tr tag. It seems to fix it but it becomes smaller in size and doesn't work with the rest of the table.</p>

<p>any hints or help in the right direction would help significantly!</p>

<p>thanks</p>

<pre><code>&lt;div class="form-panel" style="font-size: small; text-align: left;"&gt;
    &lt;div class="header"&gt;
        &lt;div class="contentRestriction" style="height: 22px"&gt;
            Action Bulletin Exception
            &lt;asp:button id="addException" text="Add Exception" runat="server" style="float: right; margin-right: 20px" onclick="addExceptions" /&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="commands"&gt;
        &lt;div class="contentRestriction" style="overflow-y: scroll; width: 100%; height: 185px"&gt;
            &lt;asp:repeater id="repException" runat="server" datasourceid="SP_AB_BULLETIN_EXCEPTION"&gt;
                        &lt;HeaderTemplate&gt;
                            &lt;div class="form-panel" style="font-size: small;"&gt;
                                &lt;table class="notepad-table" cellpadding="2" cellspacing="0" width="100%" &gt;
                                    &lt;tr style="background-color: #eeeeee; font-weight: bold; "&gt;                                 
                                        &lt;td&gt;Date Time From&lt;/td&gt;
                                        &lt;td&gt;Date Time To&lt;/td&gt;
                                        &lt;td&gt;Status&lt;/td&gt;
                                        &lt;td&gt;Last Modified&lt;/td&gt;
                                        &lt;td&gt;Last Modified By&lt;/td&gt;
                                        &lt;td&gt;Action&lt;/td&gt;
                                    &lt;/tr&gt;
                        &lt;/HeaderTemplate&gt;
                        &lt;ItemTemplate&gt;
                            &lt;tr id="tr1" runat="server"&gt;
                                &lt;td&gt;
                                    &lt;asp:Literal ID="Literal1" runat="server" Text='&lt;%# Eval("EFTV_FROM") %&gt;' /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;asp:Literal ID="Literal2" runat="server" Text='&lt;%# Eval("EFTV_TO") %&gt;' /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;asp:Literal ID="Literal3" runat="server" Text='&lt;%# Eval("AB_STATUS1") %&gt;' /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;asp:Literal ID="Literal4" runat="server" Text='&lt;%# Eval("LAST_MOD_DATE") %&gt;' /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;asp:Literal ID="Literal6" runat="server" Text='&lt;%# Eval("UserName") %&gt;' /&gt;
                                &lt;/td&gt;
                                &lt;td&gt;
                                    &lt;asp:Button ID="editException" Text="Edit" runat="server"  CommandName="EXID" CommandArgument='&lt;%# Eval("EX_ID") %&gt;' OnCommand="editException" /&gt;
                                    &lt;asp:Button ID="deleteException" Text="Delete" runat="server" CommandName="EXID" CommandArgument='&lt;%# Eval("EX_ID") %&gt;' OnCommand="deleteException" /&gt;
                                &lt;/td&gt;

                            &lt;/tr&gt;
                        &lt;/ItemTemplate&gt;
                        &lt;FooterTemplate&gt;
            &lt;/table&gt; 
        &lt;/div&gt;
        &lt;/FooterTemplate&gt;
                    &lt;/asp:Repeater&gt;      
    &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;   
</code></pre>