title: How to store cell value of an Asp.Net GridView row on click in a C# variable
body: <p>I am having a GridView in my page , I want that when a particular row is clicked I want the cell value of that particular row.Currently I get that that value by using something like this ,</p>
  
  <pre><code>protected void SearchRecordGrid_RowDataBound(object sender, GridViewRowEventArgs e)
          {
              if (e.Row.RowType == DataControlRowType.DataRow)
              {
  
  
                  e.Row.Attributes.Add("onclick", "location='ModifyCustomerByCategory.aspx?ApplicationNo=" + e.Row.Cells[0].Text + "'");
              }
  
          }
  </code></pre>
  
  <p>Currently I am passing that value as a parameter to the page , can any body tell how can I store that value in a variable or , atleast on click I assign it to a hidden field.
  Thanks for any suggestions.</p>