title: Accessing e.Row in VB.NET
body: <p>I am trying to get the value stored in <code>Text</code> attribute of the <code>lbljob_id</code>.However i can't access e.Row in code behind</p>
  
  <p>Here is my code</p>
  
  <pre><code>    &lt;asp:GridView ID="GridView1" DataSourceID="SqlDataSource1" runat="server" OnRowCommand="GridView1_ApplyRowCommand" AutoGenerateColumns="false" &gt;
           &lt;Columns&gt;
  
                              &lt;asp:BoundField HeaderText="Job Title" DataField="Job_Title" /&gt;
                              &lt;asp:BoundField HeaderText="Job Description" DataField="Job_Desc" /&gt;
                              &lt;asp:BoundField HeaderText="Recruiter FName" DataField="User_FName" /&gt;
                              &lt;asp:BoundField HeaderText="Recruiter LName" DataField="User_LName" /&gt;
                              &lt;asp:BoundField HeaderText="Deadline" DataField="End_Date" /&gt;
                              &lt;asp:BoundField HeaderText="Recruiter Email" DataField="Company_Email" /&gt;
                              &lt;asp:BoundField HeaderText="Status" DataField="Status" /&gt;
                              &lt;asp:TemplateField HeaderText="Apply"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:Label ID="lbljob_id" runat="server" Text='&lt;%# Eval("Job_ID") %&gt;' /&gt;
                                      &lt;asp:Button ID="apply" runat="server" CommandName="Apply" Text="Apply"   /&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                          &lt;/Columns&gt;
      &lt;/asp:GridView&gt;
  
      &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        SelectCommand="SELECT Job_ID,Job_Title,Job_Desc,User_FName,User_LName,Company_Email,Start_Date,End_Date,Status  
  FROM [JobDetails].[Job] AS J
  INNER JOIN [UserDetails].[Recruiter] As R 
  ON J.Recruiter_ID = R.Recruiter_ID
  INNER JOIN [UserDetails].[User] As U
  ON R.User_ID = U.User_ID"
        ConnectionString="&lt;%$ ConnectionStrings:JPortalCS %&gt;" /&gt;
  </code></pre>
  
  <p>Code behind</p>
  
  <pre><code>Protected Sub GridView1_ApplyRowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs)
     Dim Job_ID As Integer = e.Row.FindControl("Job_ID").Text
  End Sub
  </code></pre>