asp grid view check box to presrver on neigation(paging)
<p>In a grid view  i have used  paging for that i have used the view state to store datatale to bind it on GridView1_PageIndexChanging event every thing works fine but the problem happens with the first column which is having the checkbox placed in each row .
On navigation all checked check box becomes unchecked how to maintain the state of check box as well.</p>

<p>this is the aaspx code
</p>

<pre><code>&lt;Columns&gt;
&lt;asp:TemplateField HeaderText="Select Student"&gt;
&lt;ItemTemplate&gt;
&lt;asp:CheckBox id="Chek"  runat="server" Text="select" &gt;&lt;/asp:CheckBox&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:BoundField HeaderText="Enrollment No." DataField="enrollment_no" /&gt;
&lt;asp:BoundField HeaderText="Course Name" DataField="course_name"/&gt;
&lt;asp:BoundField  HeaderText="Branch Name"  DataField="branch_name"/&gt;
&lt;asp:BoundField HeaderText="Email Id" DataField="email" /&gt;
&lt;asp:BoundField  HeaderText="Mobile" DataField="mobile"/&gt;
&lt;asp:BoundField HeaderText="Name"  DataField="first_name"/&gt;
&lt;asp:BoundField  HeaderText="Surname" DataField="last_name" /&gt;
&lt;/Columns&gt;


&lt;/asp:GridView&gt;
</code></pre>
