http://www.dotnetcurry.com/ShowArticle.aspx?ID=255[
^]
iv class="mycontainer" style="height:400px; overflow: auto; position:relative;">
<asp:GridView runat="server" ID="grdSavedResults" AutoGenerateColumns="false"
AllowSorting="true" >
<Columns>
<asp:TemplateField HeaderText="Delete Results" >
<EditItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</EditItemTemplate>
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</ItemTemplate>
<HeaderStyle Width="5%" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Job Classification" SortExpression="job_class_name" >
<HeaderTemplate>
<asp:LinkButton runat="server" Text="Job Classification" ></asp:LinkButton>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("job_class_name") %>' ></asp:Label>
</ItemTemplate>
<HeaderStyle Width="10%" />
</asp:TemplateField>
<asp:BoundField DataField="salaryList" HeaderText="Twice-A-Month-Salary" SortExpression="salaryList" />
<asp:BoundField DataField="app_process_type" HeaderText="Application Process" SortExpression="app_process_type" />
<asp:BoundField DataField="countyList" HeaderText="County" />
<asp:BoundField DataField="agencyList" HeaderText="Agency" />
<asp:BoundField DataField="closing_date" HeaderText="Closing Date" SortExpression="closing_date" />
</Columns>
</asp:GridView>
</div>