title: How to add dynamic hyperlink in Grid View according to certain condition
body: <p>In my Website, I currently use a grid view which generates data from 3 tables namely status, Project_glance, Application_header. SQL Query returns 4 columns but in my grid-view i only shows 3 columns. The last column returns the Status_id of the project.The following is my .aspx code:</p>
  
  <pre><code>&lt;asp:GridView ID="grdProf" runat="server" AllowPaging="True"   AutoGenerateColumns="false" OnPageIndexChanging="grdProf_PageIndexChanging"&gt;
  &lt;Columns&gt;
    &lt;asp:TemplateField&gt;
          &lt;ItemTemplate&gt;
             &lt;asp:HyperLink ID="hlnkView" Visible="true" Text="View" runat="server" &gt;     &lt;/asp:HyperLink&gt;
          &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;
    &lt;asp:BoundField DataField="ApplicationID" HeaderText="ApplicantionID" /&gt;
    &lt;asp:BoundField DataField="PRGLProjectTitle" HeaderText="Project Title" /&gt;
    &lt;asp:BoundField DataField="Status" HeaderText="Project Status" /&gt;
  &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>If the Status_id > 15 then only view hyperlink will visible otherwise the View hyperlink text will be changed to 'Edit' and a navigate URL will add to this hyperlink and another hyperlink 'Delete' will show to allow user to delete the project detail.</p>
  
  <p>Please help me to find the correct solution for this..</p>