problem traping event in child control

S

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. )
 
P

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top