检查在第三页的数据网格中存在的复选框 [英] checking the checkbox present in the datagrid which is in the 3rd page

查看:78
本文介绍了检查在第三页的数据网格中存在的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据网格,并且我有一个复选框

在datagrid之外,我有一个下拉列表和复选框

datagrid具有字段

ID电影名称复选框
1 aa | _ |
2 bb
3 cc
4 dd
5 ee

第二页

6 c
7天
8 e
9 f
10克

下拉列表中包含电影名称
aa
bb
cc
dd
ee
c
d
e
f
g

因此,当我从下拉列表中选择抄送"并单击复选框时,它就会被选中

但是,如果我选择datagrid第二页内容值,例如:从下拉列表中选择d,则不会被选择

第二件事如何保留页面上复选框的选中状态reload

I have a datagrid and i have checkboxes in it

outside the datagrid i have a dropdownlist and checkbox

datagrid has fields

ID MOVIE-NAME CHECKBOX
1 aa |_|
2 bb
3 cc
4 dd
5 ee

second page

6 c
7 d
8 e
9 f
10 g

dropdownlist has movie names in it
aa
bb
cc
dd
ee
c
d
e
f
g

so when i select cc from the dropdownlist and when i click checkbox it gets checked

but if i select datagrid second page content value , ex: d from the dropdownlist it doesnt get selected

second thing how to retain checked status of checkboxes on page reload

推荐答案

您将存储在viewstate中选中的对象的ID,并检查当前页面.第一个问题,我不明白.您尚未发布任何代码,这使得找出错误所在的位置更加困难.
You''d store the ids of objects that are checked in viewstate, and check the items on the current page from there. The first question, I don''t understand. You''ve not posted any code, which makes it even harder to work out where your bugs are.


这篇关于检查在第三页的数据网格中存在的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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