如何在会话中存储选定的datagrid复选框? [英] how to store selected checkboxes of datagrid in sessions?

查看:75
本文介绍了如何在会话中存储选定的datagrid复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用datagrid来显示数据.在我的datagrid中,我有复选框,并且为datagrid实现了分页.我的问题是,当我选中复选框并转到datagrid的下一页时,首页的选定复选框未选中.
我希望用户选择复选框,当他进入下一页时,仍应保留以前的复选框检查状态.
使用会话如何在会话中存储数据网格的选定复选框.请提供解决方案并提供示例代码.
谢谢.

Hi,
I am using datagrid to display data. In my datagrid I have checkboxes and I have paging implemented for datagrid. My problem is when I check the checkboxes and I go to the next page of datagrid, the selected checkboxes of first page are unchecked.
I want user to select the checkboxes and when he goes to next page still previous checkboxes check status should be preserved.
Using sessions how to store selected checkboxes of datagrid in sessions. please give a solutions and give a sample code to do this.
Thanks.

推荐答案

检查 [ ^ ].

*我知道它适用于GridView,但您也可以为DataGrid实施.


希望对您有所帮助!
Check this[^].

*I know it''s for GridView but you can implement this for DataGrid as well.


Hope it helps!


这篇关于如何在会话中存储选定的datagrid复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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