This is my markup
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AllowPaging ="True" PageSize = "70"
AllowSorting="True" ShowFooter="True"
onselectedindexchanged="GridView1_SelectedIndexChanged" DataKeyNames="BatchNo"
OnRowDataBound="GridView1_RowDataBound" BackColor="#CCCCCC"
BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4"
CellSpacing="2" ForeColor="Black">
<Columns>
<asp:TemplateField HeaderText="BatchNo" SortExpression="BatchNo" >
<HeaderTemplate > ...
Go to the complete details ...