Home All Groups Group Topic Archive Search About
Author
13 Oct 2006 7:01 PM
Ben Schumacher
Ok smart guys and gals ...

I have a GridView control with a dynamically created checkbox column.  The
checkbox is created using ITemplate interface.  In my class that implements
the ITemplate interface I set the AutoPostBack property of the checkbox to
True.  When the checkbox is clicked, I want to handle the CheckChanged event
of the checkbox on the webform (.aspx) that contains the GridView control.
I can easily use the addhandler instruction in the ITemplate interface class
to handle the CheckChanged event, but how do I bubble the event out to the
actual .aspx page that contains the gridview control????????????

I have been googling for hours.  It seems no one has any idea how to do
this.  I would be so incredibly grateful for any insight into my problem.

Ben

Author
13 Oct 2006 8:19 PM
Teemu Keiski
http://aspadvice.com/blogs/joteke/archive/2006/10/13/Command_2D00_capable-CheckBox-with-GridView.aspx

ps. do not cross-post on every newsgroup

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

Show quoteHide quote
"Ben Schumacher" <bschumac***@navegate.com> wrote in message
news:O1$l7nv7GHA.3396@TK2MSFTNGP04.phx.gbl...
> Ok smart guys and gals ...
>
> I have a GridView control with a dynamically created checkbox column.  The
> checkbox is created using ITemplate interface.  In my class that
> implements
> the ITemplate interface I set the AutoPostBack property of the checkbox to
> True.  When the checkbox is clicked, I want to handle the CheckChanged
> event
> of the checkbox on the webform (.aspx) that contains the GridView control.
> I can easily use the addhandler instruction in the ITemplate interface
> class
> to handle the CheckChanged event, but how do I bubble the event out to the
> actual .aspx page that contains the gridview control????????????
>
> I have been googling for hours.  It seems no one has any idea how to do
> this.  I would be so incredibly grateful for any insight into my problem.
>
> Ben
>