title: problem in gridview control of user control
body: <p>My problem is I am setting the datasource from parent page.But if I set disable to certain columns of gridview the event of the controls inside those disabled column template gets fired. Like I have a checkbox in one column, if disable that column from parent page while data binding the check_checked event is being fired. 
  here my code- <strong>user control aspx</strong></p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Exclude Null" ItemStyle-Width="50px"&gt;
                      &lt;HeaderTemplate&gt;
                          Exclude Null
                      &lt;/HeaderTemplate&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:CheckBox runat="server" ID="chkExNull" OnCheckedChanged="chkExNull_OnCheckedChanged"
                              AutoPostBack="true" /&gt;
                      &lt;/ItemTemplate&gt;
                      &lt;ItemStyle HorizontalAlign="left" VerticalAlign="Top" /&gt;
                      &lt;HeaderStyle HorizontalAlign="left" VerticalAlign="Top" /&gt;
                  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p><strong>.cs file of parent</strong></p>
  
  <pre><code>GridView gvCondition = (GridView)ucCondition.FindControl("gvCondition");
      gvCondition.DataSource = ConditionFieldCollection;
      gvCondition.Columns[5].Visible = false;
      gvCondition.Columns[6].Visible = false;
      gvCondition.Columns[7].Visible = false;
      gvCondition.Columns[8].Visible = false;
      gvCondition.DataBind();
  </code></pre>
  
  <p><strong>What should I do, and is there any other way through which I can hide some of the columns of grid view control of user control??</strong></p>