gridview分页后的总行数?
asg86 2008-12-12 06:35:54
gridview 的AllowPaging="True", 里面绑定了两个ratiobutton
foreach (GridViewRow dr in GridView1.Rows)//对单选题每题进行判断用户选择答案
{
.........
if (((RadioButton)dr.FindControl("RBtna")).Checked) //如果选A
{
actionScore = actionScore + 1;
}
........
}
GridViewRow dr in GridView1.Rows只是当前页的Rows collection, 我无法获取第二页中ratiobutton按钮的选中值,
怎么做才可以获取啊