title: how to capture the value of a gridview template field
body: <p>In the RowDataBound event of an ASP.NET Gridview I am trying to read the value of a Label in a Template Field. I would prefer to capture this value in the RowUpdating Event, but for some reason I seem to recall that it is not possible. Here is the ASP...</p>
  
  <pre><code>&lt;asp:TemplateField  HeaderText="Translation" ItemStyle-Width="250" &gt;                      
      &lt;ItemTemplate&gt;
             &lt;asp:Label ID="Label11" runat="server" Text='&lt;%# Bind("lang_String") %&gt;' Width="250px"&gt;&lt;/asp:Label&gt;
      &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p>Here is the VB.net code that I am trying to figure out....</p>
  
  <pre><code>Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
  
      If (e.Row.RowState And DataControlRowState.Edit) &gt; 0 Then
          ' The value in the third column postion.
          Dim needThisValue as string = e.Row.Cells(3).Text
  
      End If
  End Sub
  </code></pre>
  
  <p>Any and all help would be greatly appreciated.</p>
  
  <p>thanks,</p>