Conditional HyperLink in GridView? <p>I have a gridview with a hyperlink:</p> <pre><code>&lt;asp:GridView ID="gvEmployees" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped" GridLines="None" &gt; &lt;Columns&gt; &lt;asp:TemplateField HeaderText="Name" SortExpression="EmployeName"&gt; &lt;ItemTemplate&gt; &lt;asp:HyperLink ID="HyperLink1" runat="server" Text='&lt;%# Bind("EmployeName") %&gt;' &gt;&lt;/asp:HyperLink&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; &lt;asp:TemplateField HeaderText="ID" SortExpression="EmployeID" Visible="False"&gt; &lt;ItemTemplate&gt; &lt;asp:Label ID="lblID" runat="server" Text='&lt;%# Bind("EmployeID") %&gt;'&gt;&lt;/asp:Label&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; &lt;/Columns&gt; &lt;/asp:GridView&gt; </code></pre> <p>However, it should only appear as a hyperlink if the employeeID is that of the logged in employee.</p> <p>I can do all that, but what I do not know is how to make the hyperlink look like a Label. It's easy to have it not link anywhere, but I do not know how to make it look like a label.</p> <p>Thanks</p>