I am looking for code samples to keep the table headers fixed with scroll bars but Couldnt find one. Do u have any sample code doing this?
I have used datagrid in my site whose header needs to be fixed i.e. it shouldnt scroll with the contents inside.
------------------------------
<div style="OVERFLOW: auto; WIDTH: 500px; HEIGHT: 310px; TEXT-ALIGN: left">
<asp

ataGrid id="Dtgrid1" runat="server" BorderColor="SteelBlue" BackColor="SteelBlue" ForeColor="Transparent" resizable="no" ShowHeader="true" HeaderStyle-BackColor="#aaaadd" DataKeyField="jobid" AutoGenerateColumns="False" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" AllowSorting="True" Height="100%" Font-Size="X-Small">
<FooterStyle forecolor="#8C4510" backcolor="LightSteelBlue"></FooterStyle>
<HeaderStyle font-bold="True" horizontalalign="Center" height="50px" forecolor="AliceBlue" bordercolor="Navy" backcolor="Desktop"></HeaderStyle>
<PagerStyle horizontalalign="Center" forecolor="#8C4510" mode="NumericPages"></PagerStyle>
<SelectedItemStyle font-bold="True" forecolor="White" backcolor="#738A9C"></SelectedItemStyle>
<EditItemStyle backcolor="Transparent"></EditItemStyle>
<AlternatingItemStyle forecolor="RoyalBlue" borderstyle="Groove" verticalalign="Middle" backcolor="LightSteelBlue"></AlternatingItemStyle>
<ItemStyle horizontalalign="Center" forecolor="SteelBlue" backcolor="Lavender"></ItemStyle>
<Columns>
<asp:BoundColumn Visible="False" DataField="jobid"></asp:BoundColumn>
<asp:BoundColumn DataField="Jobtitle" HeaderText="JOB TITLE"></asp:BoundColumn>
<asp:BoundColumn DataField="Category" HeaderText="CATEGORY"></asp:BoundColumn>
</Columns>
</asp

ataGrid>
</div>
------------------
I also want to know how to create a two level secure login system(admin and clients) in asp.net. Do let me know.