title: Using C#, how to get one cell text from edited row?
body: <p>Hy,</p>
  
  <p>I have a gridView control in Asp.NET like this:</p>
  
  <pre><code>&lt;asp:GridView ID="outputGridView" runat="server" onrowediting="OutputGridView_RowEditing"&gt;
   &lt;asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle"
                          ItemStyle-Width="250px" HeaderText="JobId" HeaderStyle-HorizontalAlign="Left"
                          HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#e1e1e1"&gt;
                          &lt;ItemTemplate&gt;
                              &lt;%# Eval("JobId")%&gt;
                          &lt;/ItemTemplate&gt;
                          &lt;HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" Font-Bold="True"&gt;&lt;/HeaderStyle&gt;
                          &lt;ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="250px" BorderWidth="1px"
                              BorderColor="#e1e1e1"&gt;&lt;/ItemStyle&gt;
                      &lt;/asp:TemplateField&gt;
  
  &lt;/aspGridView&gt;
  </code></pre>
  
  <p>On OutputGridView_RowEditing I have this code:</p>
  
  <pre><code>protected void OutputGridView_RowEditing(object sender, GridViewEditEventArgs e)
          {
              GridViewRow currentRow = outputGridView.Rows[e.NewEditIndex];
              string JobId = currentRow.Cells[2].Text;
              e.Cancel = true;
          }
  </code></pre>
  
  <p>But in 'JobId' string its "", does anyone have any idea how can I get the text of the third cell from the row that is being edited?</p>
  
  <p>Thank you,</p>
  
  <p>Jeff</p>