我在GridView中有一个CheckBox
。当我点击保存按钮Checkbox.checked
时,属性始终为false。
这是我的代码:
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)
{
}
}
}