title: Get the cell value of a GridView row
body: <p>I am using the GridView - <code>AutoGenerateSelectButton = "True"</code> to select the row in order to get the Column 1 cell value. </p>
  
  <p>I have tried:</p>
  
  <pre><code>GridViewRow row = dgCustomer.SelectedRow;
  TextBox1.Text = "Cell Value" + row.Cells[1].Text + "";
  </code></pre>
  
  <p>And it writes the "Cell Value" but nothing else.</p>
  
  <p>I finally was able to get the number of the row (index) but not the cell value. </p>
  
  <pre><code>GridViewRow row = dgCustomer.SelectedRow;
  TextBox1.Text = row.RowIndex.ToString();
  </code></pre>
  
  <p>I have tried: </p>
  
  <pre><code>TextBox1.Text = dgCustomer.Rows[row.RowIndex].Cells[1].Text;
  </code></pre>
  
  <p>and still returns the index row.</p>
  
  <p>Any other suggestions?
  Thank you!</p>