I have got two custom controls a GridView and a ColumnChooser for it.
GridView is derived from System.Web.UI.WebControls.GridView
ColumnChooser is derived from System.Web.UI.WebControls.Panel
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:
<div dir="ltr">It may seempredictable, butalreadyfoundthe value
of property "autopostback"</div> <div dir="ltr"></div> <div dir="ltr"></div> <div dir="ltr">http://www.acham.com.br</div>
From your single statement I cannot decide what's the matter……I only suspect whether your control has been created again and again when rendering……Well,plz show us your full codes of ColumnChooser……
Girish Chawr...
Member
178 Points
131 Posts
Event not getting fired of a custom control instantiated in another custom control
Mar 20, 2012 04:09 PM|LINK
Hi All,
I have got two custom controls a GridView and a ColumnChooser for it.
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:
The column chooser control has some buttons in it and their respective handlers are present in the ColumnChooser.cs.
Problem: The handlers present in the ColumnChooser.cs are not getting fired.
Thanks in advance ;-)
This can be beneficial to other community members reading the thread.
Good Luck!
acham.com.br
Member
98 Points
20 Posts
Re: Event not getting fired of a custom control instantiated in another custom control
Mar 20, 2012 07:09 PM|LINK
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Event not getting fired of a custom control instantiated in another custom control
Mar 22, 2012 02:10 AM|LINK
Hello Girish:)
From your single statement I cannot decide what's the matter……I only suspect whether your control has been created again and again when rendering……Well,plz show us your full codes of ColumnChooser……