0

我有CheckBox一个 GridView。当我点击保存按钮Checkbox.checked属性总是假的。

这是我的代码:

ArrayList productsToDelete = new ArrayList();

foreach (GridViewRow row in GridViewSubmit.Rows)
{

    CheckBox chkDelete = (CheckBox)GridViewSubmit.Rows[row.RowIndex].FindControl("chkDelete");
    if (chkDelete != null)
    {
       if (chkDelete.Checked)
       {

       }
    }
}
4

0 回答 0