title: Gridview FindControl inside SelectedIndexChanged event
body: <p>I created a <code>TemplateField</code> in my ASP GridView, and now I want to write a small logic for a checkbox in the gridview. I am trying the <code>FindControl</code> code to no success, I've used these combinations...</p>
  
  <pre><code>Dim chkChosen As CheckBox = 
  'GridView1.Rows(e.RowIndex).FindControl("Checkbox1")
  'DirectCast(GridView1.Rows(e.RowIndex).FindControl("Checkbox1"), CheckBox).Value
  'chkChosen = (CheckBox)row.FindControl("Checkbox1")
  </code></pre>
  
  <p>I commented them as I've used a combination of those three to no success. They all give me the same error... "RowIndex is not a Member of SystemArg...". All this is under a <code>SelectedIndexChanged</code> protected sub. </p>