title: How to hide a column in gridview accordingly to header field?
body: <p>i am using a gridview to bind my datas. i want to hide a column from backend accordingly to the headerfield</p>
  
  <pre><code>    &lt;asp:TemplateField&gt;
          &lt;HeaderTemplate&gt;
              Incident Number
          &lt;/HeaderTemplate&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lb_incidentnumber" runat="server" Text='&lt;%# Eval("IncidentNumber")%&gt;'&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>i can simply write as <code>gv_viewincident.Columns[3].Visible = false;</code>  but i want to hide the column by mentioning the headername not by giving the index.. </p>
  
  <p>how to do that?</p>