title: How to get the value of a cell specifies the GridView ASP.NET
body: <p>I need to get the value of a cell of a GridView. When the user click on the grid, I need to know which line button, and then get the value of the cell.
  I'm trying to use the following code, but not work.</p>
  
  <pre><code> protected void gvSearch_RowCommand(object sender, GridViewCommandEventArgs e)
      {
          if (e.CommandName == "Select")
          {
              int row = Convert.ToInt32(e.CommandArgument);
  
              string tst = gvSearch.Rows[row].Cells[1].Text;
          }
      }
  </code></pre>
  
  <p>I do not know if I'm using the right event to get on my goal. If someone can help me, I thank you.</p>