title: Enable/Disable Link Buttons in Gridview Depending on Condition
body: <p>I have a gridview gvData what I want is when a record in TransType Column equal to Dessert then show Write, RT. If its anything else the only show Close Edit Delete.</p>
  
  <p>Close Edit Delete Write RT are in a Template Field</p>
  
  <pre><code>ID    TRANSTYPE    R      C     TIME    
  1      Dessert   12:00  12:05    12      Close Edit Delete Write RT
  
  
  &lt;asp:TemplateField ShowHeader="False"&gt;
  &lt;ItemTemplate&gt;
      &lt;asp:LinkButton ID="lbClose" runat="server" CausesValidation="False" CommandName="CloseClicked" OnClick="CloseClick_Click"&gt;Close&lt;/asp:LinkButton&gt;
       &lt;asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="EditRow" OnClick="Edit_Click" CommandArgument='&lt;%# Eval("Id")%&gt;'&gt;Edit&lt;/asp:LinkButton&gt;
       &lt;asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="DeleteRow"OnClick="Delete_Click" OnClientClick="return confirm('Are you sure you want to Delete this Transaction?');"&gt;Delete ||&lt;/asp:LinkButton&gt;
      &lt;asp:LinkButton ID="lbWrite" runat="server" CausesValidation="False" CommandName="WriteClicked" OnClick="Write_Click"&gt;Write&lt;/asp:LinkButton&gt;
      &lt;asp:LinkButton ID="lbRT" runat="server" CausesValidation="False" CommandName="RT"OnClick="RT_Click"&gt;RT&lt;/asp:LinkButton&gt;
  &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p></p>