Event not getting fired of a custom control instantiated in another custom controlhttp://forums.asp.net/t/1782830.aspx/1?Event+not+getting+fired+of+a+custom+control+instantiated+in+another+custom+controlThu, 22 Mar 2012 02:10:48 -040017828304889937http://forums.asp.net/p/1782830/4889937.aspx/1?Event+not+getting+fired+of+a+custom+control+instantiated+in+another+custom+controlEvent not getting fired of a custom control instantiated in another custom control <p>Hi All,</p> <p>I have got two custom controls a GridView and a ColumnChooser for it.</p> <ul> <li>GridView is derived from&nbsp;&nbsp;System.Web.UI.WebControls.GridView </li><li>ColumnChooser is derived from&nbsp;System.Web.UI.WebControls.Panel </li></ul> <p>I am creating an instance of the ColumnChooser control in the CreateChildControls method of the GridView and adding this newly created instance to the parent of Gridview by using:&nbsp;</p> <pre class="prettyprint">this.Parent.Controls.AddAt(index, objColumnChooser);</pre> <p>The column chooser control has some buttons in it and their respective handlers are present in the ColumnChooser.cs.</p> <p></p> <p>Problem: The handlers present in the ColumnChooser.cs are not getting fired.</p> <p></p> <p></p> <p>Thanks in advance ;-)</p> 2012-03-20T16:09:51-04:004890196http://forums.asp.net/p/1782830/4890196.aspx/1?Re+Event+not+getting+fired+of+a+custom+control+instantiated+in+another+custom+controlRe: Event not getting fired of a custom control instantiated in another custom control &lt;div dir=&quot;ltr&quot;&gt;<span id="result_box" lang="en"><span class="hps">It may seem</span> <span class="hps">predictable</span><span>, but</span> <span class="hps">already</span> <span class="hps">found</span> <span class="hps">the value</span> <span class="hps atn"> of property &quot;</span><span>autopostback</span><span>&quot;</span></span>&lt;/div&gt; &lt;div dir=&quot;ltr&quot;&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot;&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot;&gt;http://www.acham.com.br&lt;/div&gt; 2012-03-20T19:09:27-04:004892540http://forums.asp.net/p/1782830/4892540.aspx/1?Re+Event+not+getting+fired+of+a+custom+control+instantiated+in+another+custom+controlRe: Event not getting fired of a custom control instantiated in another custom control <p>Hello Girish</p> <p>From your single statement I cannot decide what's the matterI only suspect whether your control has been created again and again when renderingWellplz show us your full codes of ColumnChooser</p> 2012-03-22T02:10:48-04:00