本文介绍了在GridView中查找选中的复选框...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用脚本在gridview中选中了一个复选框....
然后我想在gridview中获得选中的复选框,所以
以下无法正常运行的代码有助于找出错误


for(int i = 0; i< gdvManageProduct.Rows.Count; i ++)
{
GridViewRow行= gdvManageProduct.Rows [i];
bool isChecked =((CheckBox)row.FindControl("chkDealOfWeek")).Checked;

如果(已检查)
{

}
}

i have used script to checked single checkbox in gridview ....
then i want to get selected checked checkbox in gridview so have
following code which is not working plz help to find out errors


for (int i = 0; i < gdvManageProduct.Rows.Count; i++)
{
GridViewRow row = gdvManageProduct.Rows[i];
bool isChecked = ((CheckBox)row.FindControl("chkDealOfWeek")).Checked;

if (isChecked)
{

}
}

推荐答案


这篇关于在GridView中查找选中的复选框...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 02:27