title: how to get value of row in gridview and display in textbox?
body: <p>How to get value of row in <code>Gridview</code> and display in <code>Textbox</code>?</p>
  
  <p>Don't work this code. And I don't want to use this code:</p>
  
  <pre><code>protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) {
          LinkButton lnkButton = sender as LinkButton;
          GridViewRow row = (GridViewRow) lnkButton.NamingContainer;
          lblSender.Text = row.Cells[2].Text;
          lblSubject.Text = row.Cells[5].Text;
          txtReadMsg.Text = row.Cells[6].Text;
  </code></pre>