Home All Groups Group Topic Archive Search About

problem traping event in child control

Author
10 Apr 2006 10:39 AM
sunil
hello everybody...

I am develooping a kind of asp.net page in which i want to have datagrid
inside a datagrid. Thsi i have somehow managed to develop. Now what i want is
to have the functionality for the inner datagird to have the column called
actions in which some image buttons are created. I want to handle the click
event of these image buttons which i could not... How ever if I put these
image buttons on the parent grid then the events are fired as desired. Can
any one out there who can help me out of this hell.

Its very urgent and need quick feedback

Thanks in advance...

Regards
Sunil Pandita
Software Engineer
(OTS Solutions Pvt. Ltd. )

Author
10 Apr 2006 2:21 PM
Phillip Williams
Hi Sunil,

In this sample I placed the child datagrid in a separate ascx that handle
its own events
http://www.societopia.net/Samples/DataGrid_Hierarchy.aspx

If you do it this way then you can have the child datagrid raise events that
the parent form can consume like I did in this sample:
http://www.societopia.net/Samples/DataGrid_ChildControlsEvents.aspx

If you are developing in ASP.NET 2.0, you might as well migrate to the
GridView. Here is a sample in ASP.NET2.0:
http://www.webswapp.com/codesamples/aspnet20/nestedgridviews/default.aspx
Show quoteHide quote
"sunil" wrote:

> hello everybody...
>
> I am develooping a kind of asp.net page in which i want to have datagrid
> inside a datagrid. Thsi i have somehow managed to develop. Now what i want is
> to have the functionality for the inner datagird to have the column called
> actions in which some image buttons are created. I want to handle the click
> event of these image buttons which i could not... How ever if I put these
> image buttons on the parent grid then the events are fired as desired. Can
> any one out there who can help me out of this hell.
>
> Its very urgent and need quick feedback
>
> Thanks in advance...
>
> Regards
> Sunil Pandita
> Software Engineer
> (OTS Solutions Pvt. Ltd. )
>