在GridView控件中分页时维护复选框的状态 [英] Maintaining State of CheckBoxes While Paging in a GridView Control

查看:78
本文介绍了在GridView控件中分页时维护复选框的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有复选框的gridview,它包含很多数据,因此我为gridview应用了分页并每页显示10条记录.在gridview中应用分页后,如果我选择第一页中的复选框,然后移至另一页并选择第二页中的某些复选框,之后,如果我单击保存按钮,则只有第一页选定的值,而没有所有选定的值(其他页面已选择值).

我已经搜索了很多解决方案,但是每个解决方案都只能给我一个页面价值.
我需要在aspx页面的保存按钮上选择所有选定的gridview值.

请帮助我.

I have one gridview with checkboxes and it contains lot of data for that reason I applied paging for gridview and displaying 10 records per page. After apply the paging in gridview if I select checkboxes in first page and moving to another page and select some checkboxes in second page after that if I am click on save button, i have got only first page selected value, not got the all selected values(other pages selected values).

I have googled and got many solution but every solution give me only one page value.
i have require all selected gridview value on save button of aspx page.

please help me .

推荐答案

在这里,看看这些文章:
维护GridView内部不同页面中选定复选框的状态 [ ^ ]
在GridView控件中分页时维护复选框的状态 [ ^ ]
Here, have a look at these articles:
Maintaining States of Selected CheckBoxes in Different Pages inside the GridView[^]
Maintaining State of CheckBoxes While Paging in a GridView Control[^]


http://www.aspdotnet-suresh.com/2010/04/maintaining-state-of-checkboxes-while.html[^]


Check This


这篇关于在GridView控件中分页时维护复选框的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆