GridViewRow theRow = ((Control)e.CommandSource).BindingContainer as GridViewRow; LinkButton link = (LinkButton)theRow.Cells[6].FindControl("LinkbtnUpdate");
这是在gridview里获取控件的,然后我点击下一页,就会提示
指定的参数已超出有效值的范围。 参数名: index