title: How to make visible a column of gridview?
body: <p>I am using Gridview.In this i have 2 columns i.e. department and emailID.In this gridview department is bind from database and showed in linkbutton in gridview.</p>
  
  <p>I want to do that when i clicked on thst dept linkbutton it make visible the column emailID.
  How can i do this?Plaese guide me..</p>
  
  <p>Thanks in advance.</p>
  
  <p>Here is My Grid:</p>
  
  <p>
              </p>
  
  <pre><code>            &lt;asp:TemplateField&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:LinkButton ID="lnkbtnDept" runat="server" Text='&lt;%#Bind("Department")%&gt;' OnClick="lnkbtnTitle_Click" &gt;&lt;/asp:LinkButton&gt;                        
                  &lt;/ItemTemplate&gt;
                  &lt;ItemStyle HorizontalAlign="Left" Width="50%" /&gt;
              &lt;/asp:TemplateField&gt;
  
              &lt;asp:TemplateField&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:Panel ID="pnlN24" runat="server" Visible="false"&gt;
                          &lt;asp:Label ID="lblTotal" runat="server" Width="30" Text="abc"&gt;&lt;/asp:Label&gt;
                      &lt;/asp:Panel&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
          &lt;/Columns&gt;
      &lt;/asp:GridView&gt;
  </code></pre>