Ive added checkbox to each gridview row like this:
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server"/>
</ItemTemplate>
I grab value of selected checkboxes like this:
for (int i = 0; i < count; i++)
{
System.Web.UI.WebControls.CheckBox chb = (System.Web.UI.WebControls.CheckBox)DataGV.Rows[i].Cells[0].FindControl("checkbox1");
}
So. It works fine, but when i change page of gridview, previous page loses selection and set all checkboxes to false.
Probably this is because paging causes postback, but still, is there an easy solution to rewrite my code, so it will work with paging?
Maybe theres a ...
Go to the complete details ...