title: Reference specific checkbox in gridview
body: <p>I have a GridView which show data retrived from database. I've made TemplateField (CheckBox) to GridView with this code:</p>
  
  <pre><code>&lt;asp:GridView ID="dbRecordsContent" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="dbRecordsContent_SelectedIndexChanged"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:CheckBox ID="myCheckBox" runat="server" /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField DataField="title" HeaderText="title" SortExpression="title" /&gt;
          &lt;asp:BoundField DataField="url" HeaderText="url" SortExpression="url" /&gt;
          &lt;asp:BoundField DataField="category" HeaderText="category" SortExpression="category" /&gt;
          &lt;asp:BoundField DataField="isChecked" HeaderText="isChecked" SortExpression="isChecked" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>My grid view looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/RVK3t.jpg" alt="enter image description here"></p>
  
  <p>My question is: How do I know which checkbox ID is checked? For example:</p>
  
  <p>I want to delete 2nd row when I press "Delete" button. Of course I will check second Checkbox, but how do I know which record to delete? How to reference second checkbox in a code?</p>