foreach (GridViewRow row in gvUserManage.Rows) {
index = (int)gvUserManage.DataKeys[row.RowIndex].Value;
bool result = ((CheckBox)row.FindControl("chkResume")).Checked;
if (result) {
Approve_UserId_y = index;
}
else {
Approve_UserId_n = index;
}
}
我正在使用Gridview
,每页分页10次
我需要在网格视图中获取所有值取决于checkbox
使用datakeys检查。在上面的代码中,我只获得了第一页的值
我如何获得gridview
中的所有行?