title: GridView - select first row doesn't work
body: <p>I have wird problem with gridview and select checkbox for one row.</p>
  
  <p><a href="https://i.stack.imgur.com/SqbGU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SqbGU.png" alt="enter image description here"></a></p>
  
  <p>I get correct Text in Label, but if i select checkbox from first row:</p>
  
  <p><a href="https://i.stack.imgur.com/HLNFf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HLNFf.png" alt="enter image description here"></a></p>
  
  <p>I get: Room not pick</p>
  
  <p>BUTTON CLICK</p>
  
  <p>protected void bookButton_Click(object sender, EventArgs e)
          {</p>
  
  <pre><code>        foreach (GridViewRow row in GridView1.Rows)
          {
  
  
              var chk = (HtmlInputCheckBox) row.FindControl("checkboxID");
              int id_room = Convert.ToInt32(row.Cells[4].Text);
              if (chk.Checked)
              {
                  Label1.Text = id_room.ToString();
  
                  /* 
                  String CS = ConfigurationManager.ConnectionStrings["DBConnection"].ConnectionString;
                   using (SqlConnection con = new SqlConnection(CS))
                   {
                          //STORED PROCEDURE CALL
                   }
  
              }
  
              else
              {
  
                  Label1.Text ="Room not pick";
              }
                  */
          }
      }
  </code></pre>
  
  <p>AND GRIDVIEW</p>
  
  <pre><code>                            &lt;asp:GridView ID="GridView1" runat="server" CssClass="table border-0 table-hover" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" GridLines="None" BorderWidth="0px"&gt;
  
                  &lt;Columns&gt;
                      &lt;asp:BoundField DataField="Number" HeaderText="Number" SortExpression="Number" /&gt;
                      &lt;asp:BoundField DataField="Picture" HeaderText="Picture" SortExpression="Picture" /&gt;
                      &lt;asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" /&gt;
                       &lt;asp:BoundField DataField="ID"  HeaderText="IDP" SortExpression="ID" /&gt;
                      &lt;asp:TemplateField&gt;
  
                          &lt;ItemTemplate&gt;
                              &lt;input type="checkbox" CssClass="custom-checkbox" ID="checkboxID" runat="server"  /&gt;
                          &lt;/ItemTemplate&gt;
  
                          &lt;ItemStyle HorizontalAlign="Center" /&gt;
                      &lt;/asp:TemplateField&gt;
  
                  &lt;/Columns&gt;
              &lt;/asp:GridView&gt;
  </code></pre>