我有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)
{
}
}
}