title: BC30456: 'Checked' is not a member of 'checkbox'
body: <p>I have a gridView control with a checkBox TemplateField. I am trying to delete records from the gridvie based on the checked checkbox control but keep getting the error</p>
  
  <blockquote>
    <p>BC30456: 'Checked' is not a member of 'checkbox'.</p>
  </blockquote>
  
  <p>below is my button_click subroutine which should do the delete. </p>
  
  <pre><code>Protected Sub DeleteSelectedProducts_Click(sender As Object, e As EventArgs) Handles DeleteSelectedProducts.Click
      Try
          Dim atLeastOneRowDeleted As Boolean = False
  
          For Each row As GridViewRow In GridView1.Rows
  
              Dim cb As CheckBox = row.FindControl("ProductSelector")
              If cb IsNot Nothing AndAlso cb.Checked Then
  
                  atLeastOneRowDeleted = True
  
                  Dim productID As Integer = _
                      Convert.ToInt32(GridView1.DataKeys(row.RowIndex).Value)
  
                  DeleteResults.Text &amp;= String.Format( _
                      "This would have deleted ProductID {0}&lt;br /&gt;", productID)
  
              End If
          Next
          DeleteResults.Visible = atLeastOneRowDeleted
      Catch ex As Exception
  
      End Try
  
  End Sub
  </code></pre>