limchenglei
New member
- Joined
- Jul 16, 2010
- Messages
- 1
- Programming Experience
- Beginner
Hi,
I actually created a gridView and it has a auto paging function. There is also a checkbox list of user to select their choice. But whenever I switch the next page the previous selection will be removed. Is there a way to prevent the selection to be remove each time i switch over to the other page?
I am actually coding in VB.net
<asp:GridView ID="grdManagedData" runat="server" AutoGenerateColumns="false"
Width="572px" AllowPaging="True" PageSize="5">
<Columns>
<asp:TemplateField HeaderStyle-BackColor="Silver">
<ItemTemplate >
<center > <asp:CheckBox id ="chkData" runat = "server" Enabled="true"/></center>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField datafield="" headerText="No" HeaderStyle-BackColor="Silver" />
<asp:BoundField datafield="Queue" HeaderStyle-BackColor="Silver" />
<asp:BoundField datafield="No" HeaderText="MovieNo" HeaderStyle-BackColor="Silver" />
<asp:BoundField datafield="Title" HeaderText="Full Name" HeaderStyle-BackColor="Silver" />
<asp:BoundField DataField="Category" HeaderText="Category" HeaderStyle-BackColor="Silver" />
</Columns>
</asp:GridView>
Cheng Lei
I actually created a gridView and it has a auto paging function. There is also a checkbox list of user to select their choice. But whenever I switch the next page the previous selection will be removed. Is there a way to prevent the selection to be remove each time i switch over to the other page?
I am actually coding in VB.net
<asp:GridView ID="grdManagedData" runat="server" AutoGenerateColumns="false"
Width="572px" AllowPaging="True" PageSize="5">
<Columns>
<asp:TemplateField HeaderStyle-BackColor="Silver">
<ItemTemplate >
<center > <asp:CheckBox id ="chkData" runat = "server" Enabled="true"/></center>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField datafield="" headerText="No" HeaderStyle-BackColor="Silver" />
<asp:BoundField datafield="Queue" HeaderStyle-BackColor="Silver" />
<asp:BoundField datafield="No" HeaderText="MovieNo" HeaderStyle-BackColor="Silver" />
<asp:BoundField datafield="Title" HeaderText="Full Name" HeaderStyle-BackColor="Silver" />
<asp:BoundField DataField="Category" HeaderText="Category" HeaderStyle-BackColor="Silver" />
</Columns>
</asp:GridView>
Cheng Lei