title: How to find label control in the RowCommand method of grid view?
body: <pre><code>GridViewRow clickedRow = ((LinkButton)sender).NamingContainer as GridViewRow;
  Label lblUser = clickedRow.FindControl("lblFullName") as Label;
  Label lblUserId = (Label)clickedRow.FindControl("lblUserId");
  </code></pre>
  
  <p>Compiler throwing error as </p>
  
  <blockquote>
    <p>Unable to cast object of type 'System.Web.UI.WebControls.GridView'</p>
  </blockquote>